feat: add Postcode and Outcode Eloquent models

This commit is contained in:
Ovidiu U
2026-04-22 12:04:39 +01:00
parent 7c114c72e4
commit 64a7cc3de5
2 changed files with 55 additions and 0 deletions

27
app/Models/Outcode.php Normal file
View 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',
];
}