app/Http/Controllers/TagController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Tag  $tag
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UpdateTagRequest $request, Tag $tag)
    {
        if ($request->validated()){
            $tag->update($request->validated());
            return redirect()->route('tags.index')->with('message','Tag is Update');
        }else{
            return redirect()->route('tags.index')->withErrors($request->validated());
        }
    }
public function update ( UpdateTagRequest $ request , Tag $ tag ) { if ( $ request -> validated ( ) ) { $ tag -> update ( $ request -> validated ( ) ) ; return redirect ( ) -> route ( 'tags.index' ) -> with ( 'message' , 'Tag is Update' ) ; } else { return redirect ( ) -> route ( 'tags.index' ) -> withErrors ( $ request -> validated ( ) ) ; } }
Update the specified resource in storage.
Update the specified resource in storage .
//