mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Test flash messages.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user