1. Go to this page and download the library: Download cubesystems/leaf 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/ */
$currentNode = app( Arbory\Base\Nodes\Node::class );
$nodes = app( Arbory\Base\Repositories\NodesRepository::class );
// returns only the active children of the current node
$nodes->findUnder( $currentNode );
$form->addField( new Text( 'title' ) )->setRules( '
$form->addField( new Translatable( ( new Text( 'title' ) )->rules( '
new Arbory\Base\Admin\Form\Fields\ObjectRelation( 'field_name', Arbory\Base\Nodes\Node::class );
new ObjectRelation( 'field_name', Arbory\Base\Nodes\Node::class, 1 ); // single relation, compact view
new ObjectRelation( 'field_name', Arbory\Base\Nodes\Node::class, 10 );
( new ObjectRelation( 'field_name', Arbory\Base\Nodes\Node::class ) )->setIndentAttribute( 'depth' );