标签:boot use ror mes state provider port app name
错误如下所示:
首先删除已经创建的两张表,然后在app\Providers\AppServiceProvider.php文件中boot方法中增加默认值,别忘记引入
Schema类
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Schema; //add fixed sql class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { Schema::defaultStringLength(191); //add fixed sql } /** * Register any application services. * * @return void */ public function register() { // } }
之后运行php artisan admin:install 命令
安装成功
成功如图所示
标签:boot use ror mes state provider port app name
原文地址:https://www.cnblogs.com/lzp4510/p/13509532.html