app/Http/Controllers/CommandeController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create($s,$modele)
    {   
        $service = Service::find($s);
        if($service->id == '1'){
            $modele = Galerie::find($modele);
            return view('FrontEnd.commandes.commandeCartes',[ 'service' => $service,'modele' => $modele]);
        }
        elseif($service->id == '2'){
            return view('FrontEnd.commandes.commandeLogo',['service' => $service]);
        }
    }
public function create ( $ s , $ modele ) { $ service = Service :: find ( $ s ) ; if ( $ service -> id == '1' ) { $ modele = Galerie :: find ( $ modele ) ; return view ( 'FrontEnd.commandes.commandeCartes' , [ 'service' => $ service , 'modele' => $ modele ] ) ; } elseif ( $ service -> id == '2' ) { return view ( 'FrontEnd.commandes.commandeLogo' , [ 'service' => $ service ] ) ; } }
Show the form for creating a new resource.
Show the form for creating a new resource .