2017-02-03 109 views
1

我想在我的特定路径创建迁移表PHP工匠迁移错误5.3

php artisan make:migration create_options_table --create=site_options --path='Nitseditor/Nitseditor/Database' 

我得到一个错误

[ErrorException]

Array to string conversion

我的目录结构:

enter image description here

帮我解决这个问题。

+1

您的代码中可能有错误,阻止工匠 –

+0

检查'web.php'。不应该有错误。 – mySun

+0

看看如果在你的工匠命令中加入'-vvv'会给你一个更详细的错误:'php artisan make:migration -vvv ...' – mopo922

回答

1

那么,总是很难有Exception不知道我应该检查哪些文件和哪一行。

首先检查日志tail storage/logs/laravel.log -n 100以获得抛出异常的跟踪。在那里你会找到解决问题的关键。例如:

[2017-02-03 22:44:53] local.ERROR: exception 'ErrorException' with message 
<message> in <path>:<line> 
Stack trace: ...<details> 
+0

我一直在寻找这个东西。谢谢! –