Файловый менеджер - Редактировать - /home/clickysoft/public_html/jmapi5.clickysoft.net/app/Models/PurchaseOrderDetails.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; class PurchaseOrderDetails extends Model { use HasFactory; protected $table = 'purchase_order_details'; protected $guarded = [ '_token', ]; public function product(): BelongsTo { return $this->belongsTo(Product::class, 'product_id', 'id'); } public function variation(): BelongsTo { return $this->belongsTo(Variation::class, 'product_id', 'id'); } public function productPrice(): BelongsTo { return $this->belongsTo(ProductPrice::class, 'price_id', 'id'); } public function officeSupply() { return $this->belongsTo(OfficeSupplies::class, 'product_id', 'id'); } public function ordersPODetails(): HasMany { return $this->hasMany(PurchaseOrderOrderDetails::class, 'purchase_order_details_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка