chore: sync repository snapshot
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Spbu extends Model
|
||||
{
|
||||
public const STATUS_BUKA_24_JAM = 'Buka 24 Jam';
|
||||
public const STATUS_TIDAK_BUKA_24_JAM = 'Tidak Buka 24 Jam';
|
||||
|
||||
protected $table = 'spbu';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'nama_spbu',
|
||||
'nomor_spbu',
|
||||
'status',
|
||||
'latitude',
|
||||
'longitude',
|
||||
'created_at',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'latitude' => 'float',
|
||||
'longitude' => 'float',
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user