File manager - Edit - /var/www/html/portalDoServidor/app/Http/Controllers/ElementsController.php
Back
<?php namespace App\Http\Controllers; use App\Models\RHInformativo; class ElementsController extends Controller { public function index() { $informativos = RHInformativo::where([ ["status", "=", "ATIVADO"], ["categoria", "=", "INFORMATIVOS_DO_RH"], ])->orderByDesc('dataPublicacao') ->limit(5) ->get(); $legislacoes = RHInformativo::where([ ["status", "=", "ATIVADO"], ["categoria", "=", "LEGISLACOES_ORDENS_DE_SERVICOS_E_NORMATIZACOES_DO_RH"], ])->orderByDesc('dataPublicacao') ->limit(5) ->get(); return view('index', [ "informativos" => $informativos, "legislacoes" => $legislacoes, ]); } public function informativos() { $informativos = RHInformativo::where([ ["status", "=", "ATIVADO"], ["categoria", "=", "INFORMATIVOS_DO_RH"], ])->orderByDesc('dataPublicacao') ->get(); return view('informativos', [ "informativos" => $informativos, ]); } public function legislacoesOrdensNormatizacoes() { $legislacoes = RHInformativo::where([ ["status", "=", "ATIVADO"], ["categoria", "=", "LEGISLACOES_ORDENS_DE_SERVICOS_E_NORMATIZACOES_DO_RH"], ])->orderByDesc('dataPublicacao') ->get(); return view('legislacoes-ordens-normatizacoes', [ "legislacoes" => $legislacoes, ]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings