Solved.
Seems to laravel doesn't like to use 'flash' as first argumento of 'whit'.
if($user->save()){
return Redirect::to('users')->with('message','OK. Account Created');
}else{
return Redirect::action('UserController@create')->withInput()->withErrors($user->errors());
}
@if(Session::has('message'))
<h2>{{ Session::get('message')}}</h2>
@endif
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community