1. Go to this page and download the library: Download prometa/sleek 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/ */
prometa / sleek example snippets
Sleek::assets([
'vite' => [ /* Your vite bundles go here */ ],
/* additional dependencies go here */
]);
Sleek::menu([
[
'route' => route('index'),
'label' => __('navbar.index'),
],
[
/* Enables flexible icon usage via the `icon` attribute:
*
* - Simple Bootstrap icon (e.g., 'people'): 'people' will use the 'bi-people' class on the icon tag.
* - Explicit Bootstrap icon with 'bi:' prefix (e.g., 'bi:people'): 'bi-people' class on the icon tag.
* - Blade component with 'component:' prefix (e.g., 'component:my-icon'): will use the component 'my-icon'.
* It's also possible to use namespaced components (e.g., 'my-icons::my-icon')
*/
'icon' => 'people',
'route' => 'routes('customers'),
'label' => __('navbar.customers'),
],
[
'label' => __('navbar.settings'),
/* Navigation items can be nested. Items have the same structure as top-level items.
* As of now, only one level of nesting is supported.
*/
'items' => [
'route' => route('settings.general'),
'label' => __('navbar.general'),
]
],
])