%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/Gift.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

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

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

    public function user()
    {
        return $this->belongsTo(User::class);
    }

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

}

Zerion Mini Shell 1.0