app/Http/Controllers/TagsController.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(TagsRequest $request, $id)
    {
    	$tag=Tag::find($id);
        $tag->fill($request->all());
        $tag->slug = Str::slug($request->name);
        $tag->save();
        Flash::success('El tag <b>'.$tag->name.'</b> ha sido editado');
        return redirect()->route('tags.index');
    }
public function update ( TagsRequest $ request , $ id ) { $ tag = Tag :: find ( $ id ) ; $ tag -> fill ( $ request -> all ( ) ) ; $ tag -> slug = Str :: slug ( $ request -> name ) ; $ tag -> save ( ) ; Flash :: success ( 'El tag <b>' . $ tag -> name . '</b> ha sido editado' ) ; return redirect ( ) -> route ( 'tags.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .