feat: fitur koreksi odometer, kamera scan qr unit, remember me 30 hari, dan strict route guard 403
This commit is contained in:
@@ -158,7 +158,10 @@ class Vehicle extends Model
|
||||
*/
|
||||
public function determineNextAllowedDirection(): string
|
||||
{
|
||||
$last = $this->latestActivity;
|
||||
$last = $this->activities()
|
||||
->whereNotIn('validation_status', ['cancelled', 'rejected'])
|
||||
->latest('recorded_at')
|
||||
->first();
|
||||
|
||||
if (!$last) {
|
||||
return 'ANY';
|
||||
|
||||
Reference in New Issue
Block a user