Ok so i got it working the way i want by using View Composers
class AppServiceProvider extends ServiceProvider
{
view()->composer('layouts.app', function ($view) {
if (\Session::has('flash_notification')) {
$view->with('flash_notification', \Session::get('flash_notification'));
}
});
Now all my views will have {{$flash_notification}} available if it is defined
So I guess my question would be… Is this the best way? Or am I adding a bunch of overhead I don’t need?