app/Http/Controllers/ArticlesController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $article= Article::find($id);
        $article->fill($request->all());
        $article->tags()->sync($request->tags);
        $article->save();
        Flash::success('se ha editado el articulo correctamente');
        return redirect()->route('articles.index');
    }
public function update ( Request $ request , $ id ) { $ article = Article :: find ( $ id ) ; $ article -> fill ( $ request -> all ( ) ) ; $ article -> tags ( ) -> sync ( $ request -> tags ) ; $ article -> save ( ) ; Flash :: success ( 'se ha editado el articulo correctamente' ) ; return redirect ( ) -> route ( 'articles.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .