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