|
@@ -23,7 +23,11 @@ class FloorRepository
|
|
|
|
|
|
public function index()
|
|
|
{
|
|
|
- return $this->floor->paginate(20);
|
|
|
+ $where = [];
|
|
|
+ if(isset($request['id'])){
|
|
|
+ $where[] = ['id', '=', $request['id']];
|
|
|
+ }
|
|
|
+ return $this->floor->where($where)->orderBy('id', 'asc')->paginate(20);
|
|
|
}
|
|
|
|
|
|
public function create($request)
|