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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community