Support the ongoing development of Laravel.io →
Session Blade
Last updated 2 years ago.
0

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
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

gnardella gnardella Joined 27 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.