简体   繁体   English

php artisan make:找不到迁移AppServiceProvider LARAVEL 5

[英]php artisan make:migration AppServiceProvider not found LARAVEL 5

I'm new to Laravel 5 and I'm trying to do 我是Laravel 5的新手,我正在尝试做

php artisan make:migration create_projects_and_tasks_tables --create="projects"

and I got this error: 我得到这个错误:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'dodong\Providers\AppServiceProvider' not found

anyone has ideas what's wrong with this one? 有谁知道这是怎么回事? any help would be greatly appreciated. 任何帮助将不胜感激。 Thank you! 谢谢!

如下编辑app / Providers / AppServiceProvider.php:

<?php namespace dodong\Providers;

Did you try to search your project for 'dodong\\Providers\\AppServiceProvider' ? 您是否尝试在项目中搜索'dodong\\Providers\\AppServiceProvider' It's not a standard Laravel service provider; 它不是标准的Laravel服务提供商; maybe you removed a composer package but forgot to update the providers list in config/app.php ? 也许您删除了composer程序包,却忘记了更新config/app.php的提供程序列表?

Another alternative is that it's misspelled since the first letter in "dodong" is not capitalized, and Googling it renders no relevant results. 另一种选择是,由于“ dodong”中的第一个字母没有大写,因此拼写错误,并且对其进行谷歌搜索不会产生任何相关结果。

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

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