PHP code example of chriskelemba / laravel-ui-kit

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

    

chriskelemba / laravel-ui-kit example snippets


'theme' => [
    'colors' => [
        'primary' => '#ec4899',
        'primary_hover' => '#db2777',
        'primary_soft' => 'rgba(236, 72, 153, 0.14)',
        'primary_contrast' => '#ffffff',
        'accent' => '#f9a8d4',
    ],
],

[
    'label' => 'Navigation',
    'href' => route('showcase.navigation'),
    'icon' => 'navigation',
]

return view('operations.index', [
    'workspacePage' => [
        'title' => 'Northwind Ops',
        'subtitle' => 'operations workspace',
        'section' => 'inventory',
        'subnav' => 'catalog',
        'page_eyebrow' => 'Operations workspace',
        'page_heading' => 'Inventory and fulfillment',
        'page_description' => 'Track catalog records, stock movement, and fulfillment tasks from one shared workspace.',
        'navigation' => $navigation,
        'navigation_badges' => $navigationBadges,
        'theme_colors' => [
            'accent' => '#0f766e',
            'accent_soft' => '#ccfbf1',
        ],
        'brand' => [
            'initials' => 'NW',
            'name' => 'Northwind Ops',
            'tagline' => 'inventory, fulfillment, reporting',
        ],
        'profile' => [
            'user' => auth()->user(),
            'edit_href' => route('profile.edit'),
            'logout_href' => route('logout'),
        ],
    ],
    'spotlightCards' => $spotlightCards,
    'asideBlocks' => $asideBlocks,
]);

'workspace' => [
    'profile' => [
        'fields' => [
            'name' => ['name', 'username', 'full_name', 'display_name', 'Name', 'Username'],
            'email' => ['email', 'Email', 'mail'],
            'avatar_src' => ['avatar_src', 'avatar_url', 'profile_photo_url', 'photo_url'],
        ],
        'fallback' => [
            'name' => 'Default User',
            'email' => null,
        ],
        'routes' => [
            'edit' => ['name' => 'profile.edit', 'href' => null, 'parameters' => []],
            'logout' => ['name' => 'logout', 'href' => null, 'parameters' => []],
        ],
    ],
],

'branding' => [
    'logo' => asset('images/logo.svg'),
    'name' => 'Acme',
    'subtitle' => 'Workspace portal',
    'href' => '/',
],
bash
php artisan vendor:publish --tag=ui-kit-config
php artisan vendor:publish --tag=ui-kit-views
bash
php artisan vendor:publish --tag=ui-kit-config