Support the ongoing development of →
Last updated 1 year ago.

You return whatever you get back from the class.

If this is your class...

public function testClassMethod()
    return redirect('/fetch');

In your controller, you need to return that as well.

// Assume this is your controller method
public function create(Test $test)
    return $test->testClassMethod();

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?


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.

© 2023 - All rights reserved.