Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Models/TimelineEventBlock.php
Назад
<?php namespace App\Models; use \DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class TimelineEventBlock extends Model { use HasFactory; public $table = 'timeline_event_blocks'; protected $dates = [ 'created_at', 'updated_at', 'deleted_at', ]; protected $fillable = [ 'user_id', 'series_id', 'book_id', 'timeline_id', 'event_type_id', 'outline_id', 'event_name', 'event_description', 'position_x', 'size', 'timeline_character_id', 'created_at', 'updated_at', 'deleted_at', ]; public function user() { return $this->belongsTo(User::class, 'user_id'); } public function series() { return $this->belongsTo(Series::class, 'series_id'); } public function book() { return $this->belongsTo(Book::class, 'book_id'); } public function timeline() { return $this->belongsTo(Timeline::class, 'timeline_id'); } public function event_type() { return $this->belongsTo(TimelineEventType::class, 'event_type_id'); } public function outline() { return $this->belongsTo(Outline::class, 'outline_id'); } public function timeline_character() { return $this->belongsTo(TimelineCharacter::class, 'timeline_character_id'); } protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка