1. Go to this page and download the library: Download geekstek/filament-tree 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/ */
// Limit tree height to show approximately 10 rows
Tree::make('permissions')
->options($options)
->maxHeight('360px') // ~36px per row × 10 rows
// Use viewport height
Tree::make('permissions')
->options($options)
->maxHeight('50vh')
// Using integer (will be converted to pixels)
Tree::make('permissions')
->options($options)
->maxHeight(400)