I am sending some filter to my user list
E.g list users by payment method and after on the filtered list I am trying to do some actions like deleting user or approving user.
public function approve($id)
{
$user = \App\User::find($id);
$user->payStatus=1;
$user->save();
return redirect('admin/student/specificlist')
->withInput();
}
so this is my code but it gives MethodNotAllowedHttpException in RouteCollection.php line 219: isnt this function suppose to redirect my filtered list with filter options ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire