私は新しいLaravelをテストすることにしました。だから私は基本的なコマンドを開始しました:Laravel php artisanに失敗しました。artisan make:auth
$ laravel new blog
$ php artisan make:auth
$ php artisan migrate
と私は私のAppServiceProvider.phpファイルを編集し、ブート方式にデフォルトの文字列の長さ
use Illuminate\Support\Facades\Schema;
function boot()
{
Schema::defaultStringLength(191);
}
を追加しかし、私はまだエラーを持っている:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Database\Schema\MySqlBuilder::defaultStringLength()
Laravelのどのバージョンを使用していますか? –
@AguDondo Laravel 5.2 – Sa7aR
[定義されていないメソッドを呼び出す\ Database \ Schema \ MySqlBuilder :: defaultStringLength()]の重複の可能性があります(http://stackoverflow.com/questions/42105351/call-to-undefined-method-illuminate- –