This commit is contained in:
Doar Mihai
2026-04-04 18:19:34 +03:00
parent 5fb17f717d
commit 7c09846bd6
22 changed files with 1229 additions and 94 deletions
+3 -3
View File
@@ -53,10 +53,10 @@ class JobController extends Controller
/**
* Display the specified job
*/
public function show(int $id)
public function show(Job $job)
{
$job = Job::with(['source', 'category', 'jobLocation'])
->findOrFail($id);
// Load relationships
$job->load(['source', 'category', 'jobLocation']);
// Track job view event
AnalyticsEvent::logEvent(AnalyticsEvent::EVENT_JOB_VIEW, $job->id);