我试图在我的新laravel 5.5安装上安装voyager包,但是我一直保持这个错误
(php 7.0.22,mysql ver 14.14 Distrib 5.7.19,ubuntu)
jack@jo:~/Desktop/laravel$ php artisan voyager:install --with-dummy
Setting up the hooks
Hooks are now ready to use! Go ahead and try to "php artisan hook:install test-hook"
Publishing the Voyager assets, database, language, and config files
Copied Directory [/vendor/tcg/voyager/publishable/assets] To [/public/vendor/tcg/voyager/assets]
Copied Directory [/vendor/tcg/voyager/publishable/database/migrations] To [/database/migrations]
Copied Directory [/vendor/tcg/voyager/publishable/database/seeds] To [/database/seeds]
Copied Directory [/vendor/tcg/voyager/publishable/demo_content] To [/storage/app/public]
Copied Directory [/vendor/tcg/voyager/publishable/lang] To [/resources/lang]
Publishing complete.
Publishing complete.
Migrating the database tables into your application
Migration table created successfully.
[ErrorException]
Undefined index: index_type
有没有人知道问题是什么?
答案 0 :(得分:0)
也许你之前写的错误代码。
在您的申请中搜索index_type
。
答案 1 :(得分:0)
之前我没有在这个项目上写过任何代码,我只是通过composer create-project laravel/laravel voyager
命令创建了一个新代码,之后我运行composer require tcg/voyager
作为https://github.com/the-control-group/voyager的介绍
我设置了我新创建的项目,然后我运行php artisan voyager:install
但没有工作