This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
coupon/app/Models/CouponOrder.php
2021-09-05 17:20:59 +02:00

37 lines
617 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CouponOrder extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'brand_id',
'quantity',
'prefix'
];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = [
//
];
public function coupons()
{
return $this->hasMany(Coupon::class, 'coupon_order_id');
}
}