%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/management/app/Models/
Upload File :
Create Path :
Current File : /var/www/html/management/app/Models/Item.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Item extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'quantity',
        'product_id',
        'order_id',
        'price',
    ];

    public function product()
    {
        return $this->belongsTo(Product::class);
    }

    public function order()
    {
        return $this->belongsTo(Order::class);
    }

    public function usage()
    {
        return $this->hasOne(Usage::class);
    }

}

Zerion Mini Shell 1.0