Файловый менеджер - Редактировать - /home/clickysoft/public_html/app/Models/AssetTag.php
Назад
<?php namespace App\Models; use DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class AssetTag extends Model { use HasFactory; public $table = 'asset_tags'; protected $dates = [ 'created_at', 'updated_at', ]; protected $fillable = [ 'organization_id', 'asset_id', 'tag_name', 'code', 'serial', 'created_at', 'updated_at', ]; protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } public function organization() { return $this->belongsTo(Organization::class, 'organization_id'); } public function asset() { return $this->belongsTo(Asset::class, 'asset_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка