|
@@ -19,8 +19,12 @@ class PlatformContentRepository
|
|
|
|
|
|
public function index($request)
|
|
public function index($request)
|
|
{
|
|
{
|
|
|
|
+ $where = [];
|
|
|
|
+ if(isset($request['id'])){
|
|
|
|
+ $where[] = ['id',$request['id']];
|
|
|
|
+ }
|
|
$this->platformContent = $this->platformContent
|
|
$this->platformContent = $this->platformContent
|
|
- ->orderBy('id', 'desc')->get();
|
|
|
|
|
|
+ ->where($where)->orderBy('id', 'desc')->get();
|
|
|
|
|
|
return $this->platformContent;
|
|
return $this->platformContent;
|
|
}
|
|
}
|