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

Is there something I need to namespace in, like

use App\Redirect;

?

Last updated 8 years ago.
0

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

0

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'));
        $comment->save();

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

Sign in to participate in this thread!

Eventy

Your banner here too?

muppbarn muppbarn Joined 29 Mar 2016

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.