app/Http/Controllers/Admin/front/SlideController.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(CreateRequest $request)
    {
        $imageName= basename($request->imageFile->store("public" , 'public'));
        $request['image']=$imageName;
        Slide::create($request->all());
        session()->flash('msg', "s: تم إضافة السلايد بنجاح");
        return redirect(route('slide'));
    }
public function store ( CreateRequest $ request ) { $ imageName = basename ( $ request -> imageFile -> store ( " public " , 'public' ) ) ; $ request [ 'image' ] = $ imageName ; Slide :: create ( $ request -> all ( ) ) ; session ( ) -> flash ( 'msg' , " s: تم إضافة السلايد بنجاح"); return redirect ( route ( 'slide' ) ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .