PHP code example of wangliang / laravel-web

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

    

wangliang / laravel-web example snippets


php artisan vendor:publish --  

php artisan migrate (先删除框架自带的user数据迁移文件)(关掉laravel config/database 下的mysql 严格模式 strict:false)

foreach (glob(base_path('routes/Web') . '/*.php') as $file) {
    Route::middleware('web')
        ->namespace($this->namespace)
        ->group($file);
}