Add Blog Category Resource and CRUD Pages: Created BlogCategoryResource with associated pages for listing, creating, and editing blog categories. Implemented localization for all labels and messages. Enhanced BlogCategory model to specify foreign key for related blogs.
This commit is contained in:
@@ -26,7 +26,7 @@ class BlogCategory extends Model
|
||||
|
||||
public function blogs()
|
||||
{
|
||||
return $this->hasMany(Blog::class);
|
||||
return $this->hasMany(Blog::class, 'category_id');
|
||||
}
|
||||
|
||||
public function getRouteKeyName()
|
||||
|
||||
Reference in New Issue
Block a user