24 lines
400 B
PHP
24 lines
400 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||
|
|
|
||
|
|
class Site extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = [
|
||
|
|
'collection',
|
||
|
|
'domain',
|
||
|
|
'url',
|
||
|
|
'title',
|
||
|
|
'description',
|
||
|
|
'keywords',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function pages(): HasMany
|
||
|
|
{
|
||
|
|
return $this->hasMany(SitePage::class);
|
||
|
|
}
|
||
|
|
}
|