app/Http/Controllers/Dashboard/Skills.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $validated = request()->validate([
            'name' => ['required' , 'max:191']
            ]);    
        Skill::create($validated);
        alert()->success('Skill Created' , 'Done');
        return redirect()->route('skills.index');
    }
public function store ( Request $ request ) { $ validated = request ( ) -> validate ( [ 'name' => [ 'required' , 'max:191' ] ] ) ; Skill :: create ( $ validated ) ; alert ( ) -> success ( 'Skill Created' , 'Done' ) ; return redirect ( ) -> route ( 'skills.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .