ldc-qrcollector-back/app/Models/Brand.php

42 lines
689 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 array<int, string>
*/
protected $fillable = [
'name'
];
// * RELATIONSHIPS
/**
* Get the urls for the brand.
*
* @return HasMany
*/
public function urls()
{
return $this->hasMany(Url::class);
}
/**
* Get the urls for the brand.
*
* @return HasMany
*/
public function services()
{
return $this->hasMany(Service::class);
}
}