Support the ongoing development of →
Requests Views Installation
Last updated 2 years ago.

Is there something I need to namespace in, like

use App\Redirect;


Last updated 8 years ago.

Oh w8 I think I'm on to something. Just like outside Laravel, when return is used the script returns to the page that has called the function


yea, when return is called the script ends

    protected function create(Request $request)
        $comment = new Comment();

        $comment->user_id = Auth::user()->id;
        $comment->content => nl2br($request->input('content'));

        return redirect()->route('/blog');

Sign in to participate in this thread!


Your banner here too?

muppbarn muppbarn Joined 29 Mar 2016


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

Your logo here?

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

© 2024 - All rights reserved.