Fix redirect call after delete/undelete
This commit is contained in:
parent
3b207dbf7f
commit
ae1c8cbc28
@ -17,7 +17,7 @@ class PhotoController extends Controller
|
|||||||
$o->save();
|
$o->save();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->action('PhotoController@info',[$o->id]);
|
->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deletes(Request $request,$id=NULL)
|
public function deletes(Request $request,$id=NULL)
|
||||||
@ -60,7 +60,7 @@ class PhotoController extends Controller
|
|||||||
$o->save();
|
$o->save();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->action('PhotoController@info',[$o->id]);
|
->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@ class VideoController extends Controller
|
|||||||
$o->save();
|
$o->save();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->action('VideoController@info',[$o->id]);
|
->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deletes(Request $request,$id=NULL)
|
public function deletes(Request $request,$id=NULL)
|
||||||
@ -55,7 +55,7 @@ class VideoController extends Controller
|
|||||||
$o->save();
|
$o->save();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->action('VideoController@info',[$o->id]);
|
->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function view(Video $o)
|
public function view(Video $o)
|
||||||
|
@ -38,7 +38,7 @@ trait Multimedia
|
|||||||
return redirect()
|
return redirect()
|
||||||
->action(
|
->action(
|
||||||
[$this->controller($request->input('type')),'deletes'],
|
[$this->controller($request->input('type')),'deletes'],
|
||||||
['page' => $request->input('page')]
|
['page'=>$request->input('page')]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ trait Multimedia
|
|||||||
return redirect()
|
return redirect()
|
||||||
->action(
|
->action(
|
||||||
[$this->controller($request->input('type')),'duplicates'],
|
[$this->controller($request->input('type')),'duplicates'],
|
||||||
['page' => $request->input('page')]
|
['page'=>$request->input('page')]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user