Redirects to
/posts
(with success message) after successfully saving the post
public function store(Request $request)
{
    // Validating

    // Saving
    
    // Redirecting
    return redirect('/posts')->with('success', 'Post created');
}
by Valeri Tandilashvili
4 years ago
Laravel
Laravel From Scratch
0
Pro tip: use ```triple backticks around text``` to write in code fences