Update UserFieldValue Model (#1344)

* Add `name` attribute

* Pre-StyleFix

* Update UserFieldValue.php

* Used optional()

* Update Pirep.php

* Update Flight.php

* Update User.php
This commit is contained in:
B.Fatih KOZ
2021-11-03 15:46:07 +03:00
committed by GitHub
parent addfa68016
commit 9146c4a68f
4 changed files with 11 additions and 3 deletions

View File

@@ -126,7 +126,7 @@ class User extends Authenticatable
{
$length = setting('pilots.id_length');
return $this->airline->icao.str_pad($this->pilot_id, $length, '0', STR_PAD_LEFT);
return optional($this->airline)->icao.str_pad($this->pilot_id, $length, '0', STR_PAD_LEFT);
}
/**