Fix redirect call after delete/undelete

This commit is contained in:
Deon George 2024-10-04 14:39:56 +10:00
parent 3b207dbf7f
commit ae1c8cbc28
3 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ class PhotoController extends Controller
$o->save();
return redirect()
->action('PhotoController@info',[$o->id]);
->back();
}
public function deletes(Request $request,$id=NULL)
@ -60,7 +60,7 @@ class PhotoController extends Controller
$o->save();
return redirect()
->action('PhotoController@info',[$o->id]);
->back();
}
/**

View File

@ -18,7 +18,7 @@ class VideoController extends Controller
$o->save();
return redirect()
->action('VideoController@info',[$o->id]);
->back();
}
public function deletes(Request $request,$id=NULL)
@ -55,7 +55,7 @@ class VideoController extends Controller
$o->save();
return redirect()
->action('VideoController@info',[$o->id]);
->back();
}
public function view(Video $o)