app/Http/Controllers/NotifyController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request, $eid)
    {
        $user = User::findByEID($eid);
        if($user == null)
            return abort(404);
        Notification::send($user, new WebPushNotification($request->all()));
        return response("no content", 204);
    }
public function store ( Request $ request , $ eid ) { $ user = User :: findByEID ( $ eid ) ; if ( $ user == null ) return abort ( 404 ) ; Notification :: send ( $ user , new WebPushNotification ( $ request -> all ( ) ) ) ; return response ( " no content " , 204 ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .