21-11-2025

This commit is contained in:
Kevin Adametz 2025-11-21 18:21:23 +01:00
parent fa2ebd457d
commit 07959c0ba2
113 changed files with 4730 additions and 898 deletions

33
app/Models/Brand.php Normal file
View file

@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Brand extends Model
{
use HasFactory;
protected $fillable = [
'partner_id',
'name',
'slug',
'description',
'logo_url',
'is_active',
];
protected $casts = [
'is_active' => 'boolean',
];
/**
* Eine Brand gehört zu einem Partner (Manufacturer)
*/
public function partner(): BelongsTo
{
return $this->belongsTo(Partner::class);
}
}