I know it's a trivial question, but could somebody explain to me why does the return view('some.view'); not get executed? Instead, the return redirect does.
I'm using Laravel 5.1.
In a controller i got two methods:
public function change(Request $request){
if($request->edit === 'Edit')
{
$this->edit($request);
}
return redirect('to-route');
}
public function edit(Request $request){
return view('some.view');
}
I understand that the edit() method should execute and then it continue his work in the change() method, but why does it ignore the return?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire