Update DatabaseSeeder to include MediaSeeder and enhance 404 error page localization
- Added MediaSeeder to DatabaseSeeder for improved data seeding. - Updated 404 error page to use localized string for "Page not found" and added links for navigation. - Added new translation for "Page not found" in tk.json.
This commit is contained in:
@@ -126,15 +126,11 @@ class CategoryRepository
|
||||
*/
|
||||
public static function namesWithTaxes(): mixed
|
||||
{
|
||||
return CacheRepository::make(
|
||||
time: 5,
|
||||
name: 'cs-nova-models-categories',
|
||||
value: fn () => static::maskParentName(
|
||||
Category::tree()
|
||||
->where('is_visible', true)
|
||||
->get(['id', 'slug', 'name', 'tax_percentage', 'parent_id', 'is_visible'])
|
||||
->toTree()
|
||||
)
|
||||
return static::maskParentName(
|
||||
Category::tree()
|
||||
->where('is_visible', true)
|
||||
->get(['id', 'slug', 'name', 'tax_percentage', 'parent_id', 'is_visible'])
|
||||
->toTree()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user