app/Http/Controllers/Dashboard/Skills.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(Skill $skill)
    {
        $requestArray = request()->validate([
            'name'          => ['required' , 'max:191']
        ]);
        $skill->update($requestArray);
        alert()->success('Skill Updated' , 'Done');
        return redirect()->route('skills.index');
    }
public function update ( Skill $ skill ) { $ requestArray = request ( ) -> validate ( [ 'name' => [ 'required' , 'max:191' ] ] ) ; $ skill -> update ( $ requestArray ) ; alert ( ) -> success ( 'Skill Updated' , 'Done' ) ; return redirect ( ) -> route ( 'skills.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .