App\Http\Controllers\NotificationsController::getAll PHP Method

getAll() public method

public getAll ( )
    public function getAll()
    {
        $user = User::find(\Auth::id());
        $notread = $user->getNotificationsNotRead();
        return $notread->toJson();
    }
NotificationsController