ldc-startcoq/app/Models/Brand.php

31 lines
493 B
PHP
Raw Normal View History

2023-02-22 11:51:36 +01:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id
* @property string $brand
* @property string $filter
* @property Promo[] $promos
*/
class Brand extends Model
{
/**
* @var array
*/
protected $fillable = [
'brand',
'filter'
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function promos()
{
return $this->hasMany('App\Models\Promo');
}
}