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:
Mekan1206
2026-02-13 22:51:43 +05:00
parent 147e7b9516
commit ec33006984
8 changed files with 235 additions and 11 deletions

View File

@@ -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()
);
}