PHP code example of gaiththewolf / laravel-package-manager

1. Go to this page and download the library: Download gaiththewolf/laravel-package-manager library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gaiththewolf / laravel-package-manager example snippets


// config/app.php 
'providers' => [
    /*
     * Package service providers
     */
    \gaiththewolf\lpmanager\LPManagerServiceProvider::class,
];
 
//published config file : config/lpmanager.php
return [
    /*
     * Enable it?
     */
    'web_interface_enabled' => env('ENABLE_LPMANAGER', true),
    /*
    * Route used to access
    */
    'route' => 'lpmanager',
    /*
     * Deffer booting for middleware use
     */
    'use_middleware' => false,
    /*
     * If use middelware, provide the name of the middleware used
     */
    'use_middleware_name' => [],
  ];
bash 
php artisan vendor:publish --provider="gaiththewolf\lpmanager\LPManagerServiceProvider"