PHP code example of ibecsystems / admin-kit-navigation

1. Go to this page and download the library: Download ibecsystems/admin-kit-navigation 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/ */

    

ibecsystems / admin-kit-navigation example snippets


use RyanChandler\FilamentNavigation\FilamentNavigation;

return $panel
    ->plugin(FilamentNavigation::make());

use RyanChandler\FilamentNavigation\Models\Navigation;

$menu = Navigation::fromHandle('main-menu');

return $panel
    ->plugin(
        FilamentNavigation::make()
            ->itemType('post', [
                Select::make('post_id')
                    ->//...
            ])
    );

return $panel
    ->plugin(
        FilamentNavigation::make()
            ->withExtraFields([
                TextInput::make('classes'),
            ]),
    );

use RyanChandler\FilamentNavigation\Filament\Fields\NavigationSelect;

->schema([
    NavigationSelect::make('navigation_id'),
])

->schema([
    NavigationSelect::make('navigation_id')
        ->searchable(),
])

->schema([
    NavigationSelect::make('navigation_id')
        ->optionValue('handle'),
])
sh
php artisan migrate
sh
php artisan filament:assets