Update BaseApiController

This commit is contained in:
Daniel Supernault 2019-04-29 20:57:48 -06:00
parent 066f1a9282
commit 2a5dbfbe80
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -44,15 +44,6 @@ class BaseApiController extends Controller
$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)
{
$pid = Auth::user()->profile->id;