30 lines
493 B
PHP
30 lines
493 B
PHP
<?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');
|
|
}
|
|
}
|