ldc-startcoq/app/Models/PromoDistributionNetwork.php
2023-06-21 10:24:56 +00:00

47 lines
909 B
PHP

<?php
namespace App\Models;
use App\Enums\Promotions\DistributionNetworkEnum;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id
* @property boolean $name
* @property string $label
* @property string $created_at
* @property string $updated_at
* @property Promo[] $promos
*/
class PromoDistributionNetwork extends Model
{
use HasFactory;
/**
* @var array
*/
protected $fillable = [
'name',
'label',
'created_at',
'updated_at'
];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'name' => DistributionNetworkEnum::class
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function promos()
{
return $this->hasMany('App\Models\Promo');
}
}