composer require illuminate/html php
用 html
{!! Form::close() !!} 報錯 Call to undefined method Illuminate\Foundation\Application::bindShared() laravel
解決方法 git
將響應代碼報錯出 $this->app->bindShared() 改爲: $this->app->singleton(). github
Non-static method Illuminate\Http\Request::all() should not be called statically, assuming $this from incompatible context web
解決方法 ,在contorller中將 use Illuminate\Http\Request; 改成 use Request;
json
[RuntimeException] 數組
Unable to detect application namespace. app
解決方法:檢查composer.json文件是否數組最後一個值後面有逗號 若是有去掉逗號 composer
Undefined variable: errors
解決方法
You should make sure that in app/Http/Kernel.php in middlewareGroups property for web you have:
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
in this array. Compare this with https://github.com/laravel/laravel/blob/master/app/Http/Kernel.php
EDIT
It seems you need to add 'middleware' => 'web' for route you are using or put \Illuminate\View\Middleware\ShareErrorsFromSession::class, into $middleware property array
Inside of the routes.php file try to create your routes within the Route::group(['middleware' => ['web']], function () { //routes here }