34 lines
633 B
PHP
34 lines
633 B
PHP
<?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',
|
|
];
|
|
}
|
|
}
|