浏览代码

Update BaseApiController

Daniel Supernault 6 年之前
父节点
当前提交
2a5dbfbe80
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      app/Http/Controllers/Api/BaseApiController.php

+ 0 - 9
app/Http/Controllers/Api/BaseApiController.php

@@ -44,15 +44,6 @@ class BaseApiController extends Controller
         $this->fractal->setSerializer(new ArraySerializer());
         $this->fractal->setSerializer(new ArraySerializer());
     }
     }
 
 
-    public function notification(Request $request, $id)
-    {
-        $notification = Notification::findOrFail($id);
-        $resource = new Fractal\Resource\Item($notification, new NotificationTransformer());
-        $res = $this->fractal->createData($resource)->toArray();
-
-        return response()->json($res);
-    }
-
     public function notifications(Request $request)
     public function notifications(Request $request)
     {
     {
         $pid = Auth::user()->profile->id;
         $pid = Auth::user()->profile->id;