File manager - Edit - /var/www/html/homologBancodetalentos/app/Http/Controllers/Web/TalentBank/HomeWebController.php
Back
<?php namespace App\Http\Controllers\Web\TalentBank; use App\Http\Controllers\Controller; use App\Http\Services\TalentBank\BancoTalentosNoticiasService; use App\Http\Services\TalentBank\DashboardService; use App\Models\TalentBank\JobListing; use Illuminate\Http\Request; use Illuminate\View\View; class HomeWebController extends Controller { public function index(Request $request): View { $dashboardService = new DashboardService(); $counters = array_merge( $dashboardService->home($request), $dashboardService->jobs() ); $dashJobs = JobListing::with(['occupation', 'neighbourhood', 'contractType']) ->orderByDesc('id') ->limit(12) ->get(); $noticiasService = new BancoTalentosNoticiasService(); $noticias = $noticiasService->listarNoticiasCarrossel(8); return view('pages.home', [ 'counters' => $counters, 'dashJobs' => $dashJobs, 'noticias' => $noticias, ]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings