app/Http/Controllers/ClienteController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Cliente  $cliente
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $cliente       = Cliente::find($id);
        $clasificacion = Clasificacion::get()->pluck('clasificacion', 'id');
        $ciudades      = Ciudad::orderBy('ciudad')->get()->pluck('ciudad', 'id');
        $paises        = Pais::orderBy('pais')->get()->pluck('pais', 'id');
        $vendedores    = User::where('empresa_id', Auth::user()->empresa_id)->get()->pluck('full_name', 'id');
        return view('cliente.form', compact('cliente', 'clasificacion', 'ciudades', 'vendedores', 'paises'));
    }
public function edit ( $ id ) { $ cliente = Cliente :: find ( $ id ) ; $ clasificacion = Clasificacion :: get ( ) -> pluck ( 'clasificacion' , 'id' ) ; $ ciudades = Ciudad :: orderBy ( 'ciudad' ) -> get ( ) -> pluck ( 'ciudad' , 'id' ) ; $ paises = Pais :: orderBy ( 'pais' ) -> get ( ) -> pluck ( 'pais' , 'id' ) ; $ vendedores = User :: where ( 'empresa_id' , Auth :: user ( ) -> empresa_id ) -> get ( ) -> pluck ( 'full_name' , 'id' ) ; return view ( 'cliente.form' , compact ( 'cliente' , 'clasificacion' , 'ciudades' , 'vendedores' , 'paises' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .