PHP code example of seche / nova-jstree

1. Go to this page and download the library: Download seche/nova-jstree 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/ */

    

seche / nova-jstree example snippets


   php artisan vendor:publish --tag=jstree-images
   php artisan vendor:publish --tag=jstree-fonts
   

public function fields(Request $request)
{
    return [
        Jstree::make(__('Name'), 'name')
                ->theme(['dots' => true, 'stripes' => false, 'icons' => false])
                ->checkbox()
                ->search()
                ->data(['1', '2', '3']),
        ];
    }