Check for the presence of validation errors in the session, and add it to the view
This commit is contained in:
parent
dc6098c089
commit
55a68be13b
|
|
@ -235,6 +235,13 @@ class Controller extends BaseController
|
|||
'environment' => App::environment(),
|
||||
];
|
||||
|
||||
/*
|
||||
* Check for the presence of validation errors in the session.
|
||||
*/
|
||||
$this->vars['errors'] = (Config::get('session.driver') && \Session::has('errors'))
|
||||
? \Session::get('errors')
|
||||
: new \Illuminate\Support\ViewErrorBag;
|
||||
|
||||
/*
|
||||
* Handle AJAX requests and execute the life cycle functions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue