Test flash messages.

This commit is contained in:
James Cole
2016-10-20 16:51:05 +02:00
parent 78b577bc9d
commit b9308cd74a
2 changed files with 13 additions and 1 deletions

View File

@@ -153,7 +153,7 @@ class HomeController extends Controller
}
return view(
'index', compact('count', 'showTour', 'title', 'subTitle', 'mainTitleIcon', 'transactions','showDepositsFrontpage')
'index', compact('count', 'showTour', 'title', 'subTitle', 'mainTitleIcon', 'transactions', 'showDepositsFrontpage')
);
}
@@ -196,6 +196,17 @@ class HomeController extends Controller
return '<hr>';
}
/**
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/
public function testFlash()
{
Session::flash('success', 'This is a success message.');
Session::flash('info', 'This is an info message.');
Session::flash('warning', 'This is a warning.');
Session::flash('error', 'This is an error!');
return redirect(route('home'));
}
/**
* @param array $array