app/Http/Controllers/Dashboard/Pages.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'],
            'des'           => ['required' , 'min:10'],
            'meta_keywords' => ['max:191'],
            'meta_des'      => ['max:191']
            ]);    
        Page::create($validated);
        alert()->success('Page is Created' , 'Done');
        return redirect()->route('pages.index');
    }
public function store ( Request $ request ) { $ validated = request ( ) -> validate ( [ 'name' => [ 'required' , 'max:191' ] , 'des' => [ 'required' , 'min:10' ] , 'meta_keywords' => [ 'max:191' ] , 'meta_des' => [ 'max:191' ] ] ) ; Page :: create ( $ validated ) ; alert ( ) -> success ( 'Page is Created' , 'Done' ) ; return redirect ( ) -> route ( 'pages.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .