app/Http/Controllers/OficinaController.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($cliente_id)
    {
        $oficina = null;
        $ciudades = Ciudad::orderBy('ciudad')->get()->pluck('ciudad','id');
        $paises = Pais::orderBy('pais')->get()->pluck('pais','id');
        return view('oficina.form',compact('oficina','cliente_id','ciudades','paises'));
    }
public function create ( $ cliente_id ) { $ oficina = null ; $ ciudades = Ciudad :: orderBy ( 'ciudad' ) -> get ( ) -> pluck ( 'ciudad' , 'id' ) ; $ paises = Pais :: orderBy ( 'pais' ) -> get ( ) -> pluck ( 'pais' , 'id' ) ; return view ( 'oficina.form' , compact ( 'oficina' , 'cliente_id' , 'ciudades' , 'paises' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .