Changes
This commit is contained in:
+1
-2
@@ -15,13 +15,12 @@ class Post extends Model
|
||||
|
||||
protected $guarded = false;
|
||||
|
||||
|
||||
|
||||
public function category() : BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
|
||||
|
||||
public function seo()
|
||||
{
|
||||
return $this->morphOne(Seo::class, 'seoable');
|
||||
|
||||
Reference in New Issue
Block a user