Файловый менеджер - Редактировать - /home/clickysoft/public_html/calvary-p2.clickysoft.net/app/Models/EventOrder.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class EventOrder extends Model { protected $table = 'event_orders'; protected $fillable = [ 'user_id', 'event_id', 'coupon_id', 'event_title', 'event_reg_date', 'event_time_start', 'event_time_end', 'discount', 'adult_count', 'adult_total_price', 'child_count', 'child_total_price', 'total_price', 'final_price', 'status' ]; protected $dates = [ 'created_at', 'updated_at', ]; protected $casts = [ 'created_at' => 'date:m-d-Y', 'updated_at' => 'date:m-d-Y', ]; public function user() { return $this->belongsTo(User::class, 'user_id'); } public function children() { return $this->hasMany(EventOrderChild::class, 'order_id'); } public function event() { return $this->belongsTo(Event::class, 'event_id'); } public function eventPayment() { return $this->hasOne(EventPaymentLog::class, 'order_id'); } public function scopeCompleted($query) { return $query->where('status', 'Completed'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка