app/Http/Controllers/Admin/front/SlideController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Slide  $slide
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $slide = Slide::find($id);
        if($slide==null){
            session()->flash("msg", "هذا السلايد غير موجود");
            return redirect(route("slide"));
        }
        return view("admin.settings.slide.show")->withSlides($slide);
    }
public function edit ( $ id ) { $ slide = Slide :: find ( $ id ) ; if ( $ slide == null ) { session ( ) -> flash ( " msg " , " هذا السلايد غير موجود"); return redirect ( route ( " slide " ) ) ; } return view ( " admin.settings.slide.show " ) -> withSlides ( $ slide ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .