Файловый менеджер - Редактировать - /home/clickysoft/public_html/calvary-p2.clickysoft.net/app/Models/LunchOrderChild.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class LunchOrderChild extends Model { protected $table = 'lunch_order_child'; const LUNCH_PROGRAM = 'Lunch Program'; const ANNUAL_DUE = 'Annual Due'; protected $fillable = [ 'user_id', 'child_id', 'order_id', 'school_id', 'hot_lunch_id', 'grade_id', 'full_name', 'teacher_name', 'annual_graduation_contribution', 't_type', 'community_service', 'total_amount', 'type' ]; protected $dates = [ 'created_at', 'updated_at', ]; protected $casts = [ 'created_at' => 'date:m-d-Y', 'updated_at' => 'date:m-d-Y', ]; public function school() { return $this->belongsTo(School::class, 'school_id'); } public function grade() { return $this->belongsTo(Grade::class, 'grade_id'); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function order() { return $this->belongsTo(LunchOrder::class, 'order_id'); } public function childItems() { return $this->hasMany(LunchOrderChildItem::class, 'child_id'); } public function child() { return $this->belongsTo(Child::class, 'child_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка