return redirect with message laravel
snippet in php

laravel redirect back

user1076

return Redirect::back()->withErrors(['msg', 'The Message']);

and inside your view call this

@if($errors->any())
<h4>{{$errors->first()}}</h4>
@endif

Redirect::route('profile') and with() in laravel

user163

// For a route with the following URI: profile/{id}

return redirect()->route('profile', [$user]);

Redirect::route('profile') and with() in laravel

user3744

// For a route with the following URI: profile/{id}

return redirect()->route('profile', ['id' => 1]);

return redirect with message laravel

user5340

Route::post('user/profile', function () {
    // Update the user's profile...

    return redirect('dashboard')->with('status', 'Profile updated!');
});