PHP code example of yk / laravel-installer

1. Go to this page and download the library: Download yk/laravel-installer 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/ */

    

yk / laravel-installer example snippets


Yk\LaravelInstaller\InstallerProvider::class,

...
'mysql' => [
    'driver' => 'mysql',
    'host' => env('DB_HOST', 'localhost'),
    'port' => env('DB_PORT', '3306'),
    'database' => env('DB_DATABASE', 'forge'),
    'username' => env('DB_USERNAME', 'forge'),
    'password' => env('DB_PASSWORD', ''),
    'charset' => 'utf8',
    'collation' => 'utf8_unicode_ci',
    //'prefix' => '', // Old
    'prefix' => env('DB_PREFIX', ''), // Here
    'strict' => true,
    'engine' => null,
],
...