diff --git a/app/Http/Controllers/PhotoController.php b/app/Http/Controllers/PhotoController.php index 1927028..3496506 100644 --- a/app/Http/Controllers/PhotoController.php +++ b/app/Http/Controllers/PhotoController.php @@ -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(); } /** diff --git a/app/Http/Controllers/VideoController.php b/app/Http/Controllers/VideoController.php index 63e51e4..adb53eb 100644 --- a/app/Http/Controllers/VideoController.php +++ b/app/Http/Controllers/VideoController.php @@ -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) diff --git a/app/Traits/Multimedia.php b/app/Traits/Multimedia.php index 7a13f9b..9aef317 100644 --- a/app/Traits/Multimedia.php +++ b/app/Traits/Multimedia.php @@ -38,7 +38,7 @@ trait Multimedia return redirect() ->action( [$this->controller($request->input('type')),'deletes'], - ['page' => $request->input('page')] + ['page'=>$request->input('page')] ); } @@ -50,7 +50,7 @@ trait Multimedia return redirect() ->action( [$this->controller($request->input('type')),'duplicates'], - ['page' => $request->input('page')] + ['page'=>$request->input('page')] ); }