PHPackages                             envor/platform - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. envor/platform

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

envor/platform
==============

This is my package platform

v1.6.4(2y ago)06.3k—8.3%[4 PRs](https://github.com/envor/platform/pulls)2MITPHPPHP ^8.2CI passing

Since Feb 9Pushed 2mo agoCompare

[ Source](https://github.com/envor/platform)[ Packagist](https://packagist.org/packages/envor/platform)[ Docs](https://github.com/envor/platform)[ GitHub Sponsors](https://github.com/envor)[ RSS](/packages/envor-platform/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (31)Used By (2)

Platform
========

[](#platform)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6ab241cbe12b6ee1f91a195c883fab54ae314c2eadf1771401f1f59efcf7b737/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e766f722f706c6174666f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/envor/platform)[![GitHub Tests Action Status](https://camo.githubusercontent.com/db40a500b8af30f62b6701a356bb52e4bccb6e144a36d78a3e68abc76ca42329/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e766f722f706c6174666f726d2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/envor/platform/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6de86b6e1fb8a759044611a6f0824ad9e0d8bd74284c0b322b238bef51decef9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e766f722f706c6174666f726d2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/envor/platform/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1d36c71b64136e9cc53b424b9baf657fa566896322d03d0178da27f0f29d2d82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e766f722f706c6174666f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/envor/platform)

Configure your platform

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require envor/platform
```

You can publish the config file with:

```
php artisan vendor:publish --tag="platform-config"
```

This is the contents of the published config file(s):

```
// config/database.php
return [
        /*
    |--------------------------------------------------------------------------
    | Default Database Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the database connections below you wish
    | to use as your default connection for all database work. Of course
    | you may use many connections at once throughout the application.
    |
    */

    'platform' => env('PLATFORM_DB_CONNECTION', 'sqlite'),
    'default' => env('DB_CONNECTION', 'sqlite'),
];

// config/auth.php
return [
    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_reset_tokens',
            'connection' => env('PLATFORM_DB_CONNECTION', 'sqlite'),
            'expire' => 60,
            'throttle' => 60,
        ],
    ],
];

// config/platform.php

return [
    'landing_page_disk' => env('LANDING_PAGE_DISK', 'public'),
    'profile_photo_disk' => env('PROFILE_PHOTO_DISK', 'public'),
    'stores_contact_info' => env('STORES_CONTACT_INFO', true),
    'empty_logo_path' => 'profile-photos/no_image.jpg',
    'empty_phone' => '(_ _ _) _ _ _- _ _ _ _',
    'empty_fax' => '(_ _ _) _ _ _- _ _ _ _',
    'logo_path' => env('PLATFORM_LOGO_PATH'),
    'name' => env('PLATFORM_NAME'),
    'phone' => env('PLATFORM_PHONE_NUMBER'),
    'fax' => env('PLATFORM_FAX_NUMBER'),
    'street_address' => env('PLATFORM_STREET_ADDRESS'),
    'city_state_zip' => env('PLATFORM_CITY_STATE_ZIP'),
    'email' => env('PLATFORM_EMAIL'),
];

// config/session.php
