PHP code example of opanegro / dot-nova-sidebar-collapse

1. Go to this page and download the library: Download opanegro/dot-nova-sidebar-collapse 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/ */

    

opanegro / dot-nova-sidebar-collapse example snippets


// in app/Providers/NovaServiceProvider.php

use Opanegro\DotNovaSidebarCollapse\DotNovaSidebarCollapse;

// ...

public function tools()
{
    return [
        // ...
        new DotNovaSidebarCollapse(),
    ];
}

class User extends Resource
{
    public static $category = 'Management Users';
    
    /** optional */
    public static $icon = '[...svg icon...]';
}
bash
php artisan vendor:publish --tag=dot-nova-sidebar-collapse-views
bash
php artisan vendor:publish --tag=dot-nova-sidebar-collapse-config