Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Models/TimelineCharacter.php
Назад
<?php namespace App\Models; use \DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class TimelineCharacter extends Model { use HasFactory; public $table = 'timeline_characters'; protected $dates = [ 'created_at', 'updated_at', 'deleted_at', ]; protected $fillable = [ 'user_id', 'series_id', 'book_id', 'timeline_id', 'character_name', '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 eventBlocks() { return $this->hasMany(TimelineEventBlock::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
|
Настройка