feat: add Postcode and Outcode Eloquent models
This commit is contained in:
27
app/Models/Outcode.php
Normal file
27
app/Models/Outcode.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Outcode extends Model
|
||||
{
|
||||
protected $primaryKey = 'outcode';
|
||||
|
||||
public $incrementing = false;
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $keyType = 'string';
|
||||
|
||||
protected $fillable = [
|
||||
'outcode',
|
||||
'lat',
|
||||
'lng',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'lat' => 'float',
|
||||
'lng' => 'float',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user