824286145

1870 经验值

我用的version 5.1.45 (LTS) ,按装 illuminate/html 报错,又装laravelcollective/html 还是报错

php artisan -V
Laravel Framework version 5.1.45 (LTS)

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)
Nothing to install or update
Package illuminate/html is abandoned, you should avoid using it. Use laravelcollective/html instead.
Writing lock file
Generating autoload files

IlluminateFoundationComposerScripts::postUpdate
php artisan optimize
Generating optimized class loader

☁ laravelapp composer require laravelcollective/html
Using version ^5.3 for laravelcollective/html
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1

- Installation request for laravelcollective/html ^5.3 -> satisfiable by laravelcollective/html[v5.3.0].
- Conclusion: remove symfony/debug v2.7.23
- Conclusion: don't install symfony/debug v2.7.23
- laravelcollective/html v5.3.0 requires illuminate/view 5.3.* -> satisfiable by illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/view v5.3.0 requires symfony/debug 3.1.* -> satisfiable by symfony/debug[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9].
- illuminate/view v5.3.16 requires symfony/debug 3.1.* -> satisfiable by symfony/debug[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9].
- illuminate/view v5.3.23 requires symfony/debug 3.1.* -> satisfiable by symfony/debug[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9].
- illuminate/view v5.3.4 requires symfony/debug 3.1.* -> satisfiable by symfony/debug[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9].
- Can only install one of: symfony/debug[v3.1.0, v2.7.23].
- Can only install one of: symfony/debug[v3.1.1, v2.7.23].
- Can only install one of: symfony/debug[v3.1.2, v2.7.23].
- Can only install one of: symfony/debug[v3.1.3, v2.7.23].
- Can only install one of: symfony/debug[v3.1.4, v2.7.23].
- Can only install one of: symfony/debug[v3.1.5, v2.7.23].
- Can only install one of: symfony/debug[v3.1.6, v2.7.23].
- Can only install one of: symfony/debug[v3.1.7, v2.7.23].
- Can only install one of: symfony/debug[v3.1.8, v2.7.23].
- Can only install one of: symfony/debug[v3.1.9, v2.7.23].
- Installation request for symfony/debug (locked at v2.7.23) -> satisfiable by symfony/debug[v2.7.23].

Installation failed, reverting ./composer.json to its original content.

请教一下 mac怎么升级php 版本级切换

>>> factory(Discussion::class,30)->create();
InvalidArgumentException with message 'Unable to locate factory with name [default] [APP\Discussion].'

以下这些live templates是个人常用的几个 1.bcontainer <div class="container"> <div class="row"> <div class="col-md-9" role="main"> $CODE$ </div> </div> </div> 2.bcss <link rel="stylesheet" href="/cs

public function index(){return view('articles.index'); 这个return就会空白, return 123; 直接return123,可以看到123}

我重新生这个视频开始做的, Route::get('articles','ArticlesController@index'); 创建的这个路由,写了方法,打开页面,空白

Route::get('/articles/{id}','ArticlesController@show');
Route::get('/articles/create','ArticlesController@create'); 昭着你视频写的,这条路由就会报错
Route::get('/article/create','ArticlesController@create');