From e9fd25773ac65f03ff7774210e1617912a454a71 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Thu, 8 Aug 2019 08:50:52 -0400 Subject: [PATCH] Tweak formatting when sharing errors --- app/Providers/AppServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 1ee9674..4c9896c 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -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) [], ]; });