PHP code example of creode / laravel-nova-folders

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

    

creode / laravel-nova-folders example snippets


return [
];

Event::listen(function (DefineFolderActionsEvent $event) {
    $event->actions[] = TestActionClass::make();
});
bash
php artisan vendor:publish --tag="nova-folders-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="nova-folders-config"
bash
php artisan vendor:publish --tag="nova-folders-views"
bash
php artisan vendor:publish --tag="nova-folders-seeders"
bash
php artisan db:seed --class=FolderRoleAndPermissionSeeder