37 lines
722 B
PHP
37 lines
722 B
PHP
<?php
|
|
|
|
namespace Modules\Page\app\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Page\Database\factories\PageMetaFactory;
|
|
|
|
class PageMeta extends Model
|
|
{
|
|
// use HasFactory;
|
|
use SoftDeletes;
|
|
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = [
|
|
'page_id',
|
|
'meta_title',
|
|
'meta_description',
|
|
'meta_keywords',
|
|
];
|
|
|
|
|
|
public function page()
|
|
{
|
|
return $this->belongsTo(Page::class, 'page_id');
|
|
}
|
|
|
|
protected static function newFactory(): PageMetaFactory
|
|
{
|
|
//return PageMetaFactory::new();
|
|
}
|
|
}
|