Файловый менеджер - Редактировать - /home/clickysoft/public_html/calvary-p2.clickysoft.net/app/Models/EventOrderChild.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; class EventOrderChild extends Model { protected $table = 'event_order_child'; protected $fillable = [ 'user_id', 'order_id', 'event_id', 'first_name', 'last_name', 'category', 'price', 'status' ]; protected function fullName(): Attribute { return Attribute::make( get: fn () => $this->first_name.' '.$this->last_name, ); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function order() { return $this->belongsTo(EventOrder::class, 'order_id'); } public function scopeCompleted($query) { return $query->where('status', 'Completed'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка