|
@@ -19,12 +19,8 @@ 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
|
|
- ->where($where)->orderBy('id', 'desc')->get();
|
|
|
|
|
|
+ ->where('id',$request['id'])->orderBy('id', 'desc')->first();
|
|
|
|
|
|
return $this->platformContent;
|
|
return $this->platformContent;
|
|
}
|
|
}
|