Lumen: redirect() not work

591 Views Asked by At

I have a problem with redirection in Lumen framework. My code is

$del = Fees::find($id)->delete();

if($del) {
    return redirect()->back();
}

when I execute this code by route then server response 500 Server Internal error and redirection not work. Where the problem. What can I do?

0

There are 0 best solutions below