Seebad 0.3 stays in this release. With a single landlord every host still reaches the default website. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
474 B
PHP
23 lines
474 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* One hostname of a website. A host belongs to exactly one website.
|
|
*/
|
|
#[Fillable(['site_id', 'host'])]
|
|
class SiteDomain extends Model
|
|
{
|
|
/**
|
|
* @return BelongsTo<Site, $this>
|
|
*/
|
|
public function site(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Site::class);
|
|
}
|
|
}
|