自己在学习laravel5.5的时候,出现了下面的错误。
于是开始疯狂百度,终于找到了解决办法。
办法如下:
1. Update the "config/database.php" for 'mysql'
> 'engine' => null,
with
> 'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
++++++++++++++++++++++++++++++++++++++++++++
2. Update the "app/Providers/AppServiceProvider.php" with
<pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; margin-top: 0px; margin-bottom: 0px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: rgb(246, 248, 250); border-radius: 3px; word-break: normal;"><?phpnamespace App\Providers;use Illuminate\Support\ServiceProvider;use Illuminate\Support\Facades\Schema;class AppServiceProvider extends ServiceProvider{ /** * Bootstrap any application services. * * @return void */ public function boot() { // Specified key was too long error, Laravel News post: Schema::defaultStringLength(191); } /** * Register any application services. * * @return void */ public function register() { // }}
++++++++++++++++++++++++++++++++++++++++++++
3. Execute Command:
php artisan cache:clear
php artisan config:clear
php artisan voyager:install --with-dummy
Now, everything works! :)
引用地址:https://github.com/the-control-group/voyager/issues/901#issuecomment-291470960" style="color: rgb(103, 149, 181); outline: 0px; margin: 0px; padding: 0px; box-sizing: border-box; text-decoration-line: none; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; text-align: justify; white-space: normal; background-color: rgb(255, 255, 255);" target="_blank">https://github.com/the-control-group/voyager/issues/901#issuecomment-291470960</a>
有问题可在下方留言讨论,或者邮箱联系我,邮箱地址在网站下方。
转载无需和我联系,但请注明来自木点点博客http://www.tu-do.cn/
最新评论