1 | <?php |
||
2 | |||
3 | namespace LaraGeoData\Models; |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Model; |
||
6 | |||
7 | class PostalCode extends Model |
||
8 | { |
||
9 | use HasTableWithSuffix, HasCoordinates, HasLocationName; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
10 | |||
11 | protected $primaryKey = 'postal_code'; |
||
12 | public $incrementing = false; |
||
13 | |||
14 | protected $guarded = []; |
||
15 | |||
16 | protected string $locationNameColumn = 'postal_code'; |
||
17 | |||
18 | /** |
||
19 | * @inheritDoc |
||
20 | */ |
||
21 | 2 | public function getTableNameRoot(): string |
|
22 | { |
||
23 | 2 | return config('geonames.database.tables.postalcodes'); |
|
24 | } |
||
25 | } |
||
26 |