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