Added vehicle entries in plant model
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-05-20 12:05:34 +05:30
parent b6519e3bbf
commit 7d84624843

View File

@@ -163,4 +163,9 @@ class Plant extends Model
{
return $this->hasMany(User::class, 'plant_id', 'id');
}
public function vehicleEntries()
{
return $this->hasMany(VehicleEntry::class, 'plant_id', 'id');
}
}