app/Http/Controllers/Admin/front/ServiceController.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)
    {
        $service = Service::find($id);
        if($service==null){
            session()->flash("msg", "هذه الخدمة غير موجودة");
            return redirect(route("services.index"));
        }
        return view("frontend.service.edit")->withService($service);
    }
public function edit ( $ id ) { $ service = Service :: find ( $ id ) ; if ( $ service == null ) { session ( ) -> flash ( " msg " , " هذه الخدمة غير موجودة"); return redirect ( route ( " services.index " ) ) ; } return view ( " frontend.service.edit " ) -> withService ( $ service ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .