app/Http/Controllers/FormularioArmasController.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(Request $request)
    {
        $cargos = Cargos::orderBy('cargo')->get();
        $unidades = Unidade::get();
        return view('FormularioArmas.formulario',compact('unidades','cargos'));
    }
public function create ( Request $ request ) { $ cargos = Cargos :: orderBy ( 'cargo' ) -> get ( ) ; $ unidades = Unidade :: get ( ) ; return view ( 'FormularioArmas.formulario' , compact ( 'unidades' , 'cargos' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// dd($cargos);