PHP code example of novius / laravel-backpack-menu
1. Go to this page and download the library: Download novius/laravel-backpack-menu library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
novius / laravel-backpack-menu example snippets
Novius\Backpack\Menu\MenuServiceProvider::class
// The function takes two parameters:
// 1. Slug => Identifies the menu
// 2. Locale => (Optional) Force a locale version of the menu.
\Novius\Backpack\Menu\Models\Menu::display('header', 'en');
use Novius\Backpack\Menu\LinkedItems;
// And optionally overrides the base functionality to suit your needs:
public static function linkableItems(string $prefix = ''): array
public static function linkableRoute(string $routeName, string $translation): array
public function linkableUrl(): string
public function linkableTitle(): string
public function linkableId(): string