app/Http/Controllers/LotacaoNovaController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $funcoes = DB::connection('mysql_rh')->table('funcoes')->where('data_extincao')->get();
        $gratificacoes = DB::connection('mysql_rh')->table('gratificacoes')->where('data_fim')->get();
        $unidades = Unidade::get();
        return view('Lotacoes/modalLotacao', compact('unidades', 'funcoes', 'gratificacoes'));
    }
public function index ( ) { $ funcoes = DB :: connection ( 'mysql_rh' ) -> table ( 'funcoes' ) -> where ( 'data_extincao' ) -> get ( ) ; $ gratificacoes = DB :: connection ( 'mysql_rh' ) -> table ( 'gratificacoes' ) -> where ( 'data_fim' ) -> get ( ) ; $ unidades = Unidade :: get ( ) ; return view ( 'Lotacoes/modalLotacao' , compact ( 'unidades' , 'funcoes' , 'gratificacoes' ) ) ; }
Show the application dashboard.
Show the application dashboard .
// return view('Lotacoes/lotacaoModal', compact('unidades', 'funcoes', 'gratificacoes'));