Add timezone aliases
This commit is contained in:
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use App\Models\Observers\AirportObserver;
|
|
||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
use Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Airport
|
* Class Airport
|
||||||
@@ -88,4 +86,12 @@ class Airport extends BaseModel
|
|||||||
{
|
{
|
||||||
return $this->icao . ' - ' . $this->name;
|
return $this->icao . ' - ' . $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getTimezoneAttribute(): string
|
||||||
|
{
|
||||||
|
return $this->tz;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,15 @@ class User extends Authenticatable
|
|||||||
return $this->getPilotIdAttribute();
|
return $this->getPilotIdAttribute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the timezone
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getTzAttribute()
|
||||||
|
{
|
||||||
|
return $this->timezone;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $size Size of the gravatar, in pixels
|
* @param mixed $size Size of the gravatar, in pixels
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
Reference in New Issue
Block a user