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?