URL path to control number of listed items for duplicates/delete
This commit is contained in:
parent
5b1b6a3fd2
commit
4828cc6e84
@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
use App\Models\Photo;
|
||||
use App\Traits\Multimedia;
|
||||
|
||||
@ -18,13 +20,13 @@ class PhotoController extends Controller
|
||||
->action('PhotoController@info',[$o->id]);
|
||||
}
|
||||
|
||||
public function deletes($id=NULL)
|
||||
public function deletes(Request $request,$id=NULL)
|
||||
{
|
||||
return view('catalog.deletereview',[
|
||||
'catalog'=>is_null($id)
|
||||
? Photo::where('remove',1)
|
||||
->with(['software.model.make'])
|
||||
->paginate(self::list_deletes)
|
||||
->paginate($request->input('list',self::list_deletes))
|
||||
: Photo::where('id',$id)
|
||||
->paginate(1),
|
||||
'return'=>url('p/deletes'),
|
||||
@ -32,13 +34,13 @@ class PhotoController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function duplicates($id=NULL)
|
||||
public function duplicates(Request $request,$id=NULL)
|
||||
{
|
||||
return view('catalog.duplicatereview',[
|
||||
'catalog'=>is_null($id)
|
||||
? Photo::duplicates()
|
||||
->with(['software.model.make'])
|
||||
->paginate(self::list_duplicates)
|
||||
->paginate($request->input('list',self::list_duplicates))
|
||||
: Photo::where('id',$id)
|
||||
->paginate(1),
|
||||
'return'=>url('p/duplicates'),
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
use App\Models\Video;
|
||||
use App\Helpers\VideoStream;
|
||||
use App\Traits\Multimedia;
|
||||
@ -19,13 +21,13 @@ class VideoController extends Controller
|
||||
->action('VideoController@info',[$o->id]);
|
||||
}
|
||||
|
||||
public function deletes($id=NULL)
|
||||
public function deletes(Request $request,$id=NULL)
|
||||
{
|
||||
return view('catalog.deletereview',[
|
||||
'catalog'=>is_null($id)
|
||||
? Video::where('remove',1)
|
||||
->with(['software.model.make'])
|
||||
->paginate(self::list_deletes)
|
||||
->paginate($request->input('list',self::list_deletes))
|
||||
: Video::where('id',$id)
|
||||
->paginate(1),
|
||||
'return'=>url('v/deletes'),
|
||||
@ -33,13 +35,13 @@ class VideoController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function duplicates($id=NULL)
|
||||
public function duplicates(Request $request,$id=NULL)
|
||||
{
|
||||
return view('catalog.duplicatereview',[
|
||||
'catalog'=>is_null($id)
|
||||
? Video::duplicates()
|
||||
->with(['software.model.make'])
|
||||
->paginate(self::list_duplicates)
|
||||
->paginate($request->input('list',self::list_duplicates))
|
||||
: Video::where('id',$id)
|
||||
->paginate(1),
|
||||
'return'=>url('v/duplicates'),
|
||||
|
Loading…
Reference in New Issue
Block a user