clrghouz/app/Models/Dynamic.php

31 lines
516 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
2024-11-04 07:25:49 +00:00
use App\Models\Casts\CollectionOrNull;
class Dynamic extends Model
{
use SoftDeletes;
protected $casts = [
'arguments' => CollectionOrNull::class,
'next_at' => 'datetime:Y-m-d H:i:s',
'start_date' => 'datetime:Y-m-d',
'start_time' => 'datetime:H:i:s',
];
/* RELATIONS */
public function address()
{
return $this->belongsTo(Address::class);
}
/* ATTRIBUTES */
/* METHODS */
}