ldc-qrcollector-back/app/Models/Brand.php
2026-02-12 16:09:21 +01:00

42 lines
815 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Brand extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name'
];
// * RELATIONSHIPS
/**
* Get the urls for the brand.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Url, $this>
*/
public function urls()
{
return $this->hasMany(Url::class);
}
/**
* Get the urls for the brand.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Service, $this>
*/
public function services()
{
return $this->hasMany(Service::class);
}
}