app/Http/Controllers/ArticleController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Article  $article
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Article $article)
    {
        $this->authorize('update', $article);
        $article->update($this->validateData());
        return (new ArticleResource($article))->response()->setStatusCode(Response::HTTP_OK);
    }
public function update ( Request $ request , Article $ article ) { $ this -> authorize ( 'update' , $ article ) ; $ article -> update ( $ this -> validateData ( ) ) ; return ( new ArticleResource ( $ article ) ) -> response ( ) -> setStatusCode ( Response :: HTTP_OK ) ; }
Update the specified resource in storage.
Update the specified resource in storage .