Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/CustomMenu/app/Enums/DefaultMenusEnum.php
Назад
<?php namespace Modules\CustomMenu\app\Enums; use Illuminate\Support\Collection; enum DefaultMenusEnum: string { public static function getAll(): Collection { $all_default_menus = [ (object) ['name' => __('About Us'), 'url' => '/about-us'], (object) ['name' => __('Blog'), 'url' => '/blogs'], (object) ['name' => __('Contact Us'), 'url' => '/contact-us'], (object) ['name' => __('Home'), 'url' => '/'], (object) ['name' => __('Properties'), 'url' => '#'], (object) ['name' => __('All Properties'), 'url' => '/properties?page_type=list_view'], (object) ['name' => __('Featured Properties'), 'url' => '/properties?page_type=list_view&sorting_id=3'], (object) ['name' => __('Top Properties'), 'url' => '/properties?page_type=list_view&sorting_id=4'], (object) ['name' => __('Urgent Properties'), 'url' => '/properties?page_type=list_view&sorting_id=6'], (object) ['name' => __('Agents'), 'url' => '/agents'], (object) ['name' => __('Pricing'), 'url' => '/pricing-plan'], (object) ['name' => __('Pages'), 'url' => '#'], (object) ['name' => __('FAQ'), 'url' => '/faq'], (object) ['name' => __('Privacy Policy'), 'url' => '/privacy-policy'], (object) ['name' => __('Terms & Conditions'), 'url' => '/terms-and-conditions'], (object) ['name' => __('Career'), 'url' => '/career'], ]; // Sort the array by the 'name' property usort($all_default_menus, function ($a, $b) { return strcmp($a->name, $b->name); }); // Convert the sorted array to a collection return collect($all_default_menus); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.2 |
proxy
|
phpinfo
|
Настройка