Файловый менеджер - Редактировать - /home/clickysoft/public_html/calvary-p2.clickysoft.net/app/Models/LunchOrder.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class LunchOrder extends Model { protected $table = 'lunch_orders'; const LUNCH_PROGRAM = 'Lunch Program'; const ANNUAL_DUE = 'Annual Due'; protected $fillable = [ 'user_id', 'hot_lunch_id', 'coupon_id', 'hot_lunch_title', 'hot_lunch_reg_starts', 'hot_lunch_reg_ends', 'discount', 'total_price', 'is_paid_annual_due', 'annual_due', 'school_directory_quantity', 'school_directory_price', 'annual_graduation_contribution', 'community_service', 'late_fee', 'final_price', 'type' ]; protected $dates = [ 'hot_lunch_reg_starts', 'hot_lunch_reg_ends', 'created_at', 'updated_at', ]; protected $casts = [ 'hot_lunch_reg_starts' => 'date:m-d-Y', 'hot_lunch_reg_ends' => 'date:m-d-Y', '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(LunchOrderChild::class, 'order_id'); } public function hotLunch() { return $this->belongsTo(HotLunch::class, 'hot_lunch_id'); } public function orderItems() { return $this->hasMany(LunchOrderChildItem::class, 'order_id'); } public function lunchPayment() { return $this->hasOne(LunchPaymentLog::class, 'order_id'); } public function scopeCompleted($query) { return $query->where('status', 'Completed'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка