PHP code example of fromhome / laravel-starter

1. Go to this page and download the library: Download fromhome/laravel-starter 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/ */

    

fromhome / laravel-starter example snippets


private function registerNavigationGroups(): void
{
    Navigation::registerNavigationGroups([
        NavigationGroup::new()->menus([
            NavigationItem::new()
                ->label('Home')
                ->href('/')
                ->icon('home'),
        ]),
        NavigationGroup::new()->label('Setting')->icon('settings')->menus([
            NavigationItem::new()
                ->label('User')
                ->href('/users')
                ->icon('user-round-cog'),
            // Other menu for Setting
        ]),
        // Other group
    ]);
}