ningzhenzhen123

198 经验值

执行composer require illuminate/html就好像报错了似得,如下信息:
Using version ^5.0 for illuminate/html
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals

  • Installing illuminate/html (v5.0.0):
    Package illuminate/html is abandoned, you should avoid using it. Use laravelcollective/html instead.
    Writing lock file
    Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover

[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined method Illuminate\Foundation\Application::bindShared()

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

然后访问页面就报错:
Call to undefined method Illuminate\Foundation\Application::bindShared() (View: D:\phpStudy\WWW\test\jstylelaravel\resources\views\articles\create.blade.php)

至今没明天老师是怎么跳到show那个方法的,是点击了什么吗

Illuminate \ Database \ QueryException (1045)
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from articles)
希望老师有空帮我看看,而且 $article=App\Article::all();是有数据的

厉害,但是我的居然报错了,我也不清楚为啥