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