Файловый менеджер - Редактировать - /home/clickysoft/public_html/calvary-p2.clickysoft.net/app/Models/EventTicket.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasOne; class EventTicket extends Model { protected $fillable = [ 'user_id', 'event_id', 'coupon_id', 'total_tickets', 'total_price', 'discount_amount', 'total_amount_after_disc', ]; public function event() { return $this->belongsTo(Event::class, 'event_id', 'id'); } public function users() { return $this->belongsTo(User::class, 'user_id', 'id'); } public function coupons() { return $this->belongsTo(Coupon::class, 'coupon_id', 'id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка