简体   繁体   English

使用工匠迁移Laravel数据库

[英]migrate Laravel Database using artisan

when try to migrate Laravel 4 with table 'user' in database using artisan: 当尝试使用artisan在数据库中使用表'user'迁移Laravel 4时:

php artisan migrate:make --table="user" CreateUserTable

I receive this error: 我收到此错误:

C:\\xampp\\htdocs\\laravel>php artisan migrate:make --table=user CreateUserTable [21.04.2014 02:27:56 NOTICE] Successfully established connection to the database C:\\ xampp \\ htdocs \\ laravel> php artisan migrate:make --table = user CreateUserTable [21.04.2014 02:27:56 NOTICE]已成功建立与数据库的连接

[21.04.2014 02:27:56 NOTICE] Event Reporting is not allowed at the moment. [21.04.2014 02:27:56通知]目前不允许进行事件报告。 Reaso ns: Pre Startup or Post Shutdown {"error":{"type":"Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpExcepti on","message":"","file":"C:\\xampp\\htdocs\\laravel\\vendor\\laravel\\framework\\ \\src\\Illuminate\\Foundation\\Application.php","line":871}} C:\\xampp\\htdocs\\laravel> Reaso ns:Pre Startup或Post Shutdown {“error”:{“type”:“Symfony \\ Component \\ HttpKernel \\ Exception \\ NotFoundHttpExcepti on”,“message”:“”,“file”:“C:\\ xampp \\ htdocs \\ laravel \\ vendor \\ laravel \\ framework \\ \\ src \\ Illuminate \\ Foundation \\ Application.php“,”line“:871}} C:\\ xampp \\ htdocs \\ laravel>

how to solve this? 怎么解决这个?

thanks, 谢谢,

我通过使用composer安装所有laravel依赖来解决这个问题(不是从GithHub下载)

to install all dependencies with composer. 使用composer安装所有依赖项。 change directory to laravel folder in cmd and than type composer update and hit enter and wait until it is done. 将目录更改为cmd中的laravel文件夹,然后键入composer update并按Enter键并等待完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM