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