app/Http/Controllers/AdminVideoController.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)
    {
        $request->validate([
            'title' => 'required',
            'body' => 'required',
        ]);
        Video::create($request->all());
         Session::flash('create_video','The user has been successful!!!');
        return back();
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'title' => 'required' , 'body' => 'required' , ] ) ; Video :: create ( $ request -> all ( ) ) ; Session :: flash ( 'create_video' , 'The user has been successful!!!' ) ; return back ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// return $request->all();