Tweak formatting when sharing errors

This commit is contained in:
Jonathan Reinink 2019-08-08 08:50:52 -04:00
parent b4d70359db
commit e9fd25773a
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ class AppServiceProvider extends ServiceProvider
'flash' => [
'success' => Session::get('success'),
],
'errors' => Session::get('errors') ? Session::get('errors')->getBag('default')->getMessages() : (object) [],
'errors' => Session::get('errors')
? Session::get('errors')->getBag('default')->getMessages()
: (object) [],
];
});