Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Models/Maintenance.php
Назад
<?php namespace App\Models; use DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Maintenance extends Model { use HasFactory; public $table = 'maintenances'; protected $dates = [ 'created_at', 'updated_at', 'deleted_at', ]; protected $fillable = [ 'task', 'unit_id', 'status', 'created_at', 'updated_at', 'deleted_at', ]; public const STATUS_SELECT = [ 'in_progress' => 'In Progress', 'cancelled' => 'Cancelled', 'completed' => 'Completed', ]; protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } public function unit() { return $this->belongsTo(Unit::class, 'unit_id'); } public function categories() { return $this->belongsToMany(Category::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка