PHP code example of tomatophp / filament-browser

1. Go to this page and download the library: Download tomatophp/filament-browser 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/ */

    

tomatophp / filament-browser example snippets


->plugin(
    \TomatoPHP\FilamentBrowser\FilamentBrowserPlugin::make()
        ->hiddenFolders([
            base_path('app')
        ])
        ->hiddenFiles([
            base_path('.env')
        ])
        ->hiddenExtantions([
            "php"
        ])
        ->allowCreateFolder()
        ->allowEditFile()
        ->allowCreateNewFile()
        ->allowCreateFolder()
        ->allowRenameFile()
        ->allowDeleteFile()
        ->allowMarkdown()
        ->allowCode()
        ->allowPreview()
        ->basePath(base_path())
)
bash
php artisan filament-browser:install
bash
php artisan vendor:publish --tag="filament-browser-config"
bash
php artisan vendor:publish --tag="filament-browser-views"
bash
php artisan vendor:publish --tag="filament-browser-lang"
bash
php artisan vendor:publish --tag="filament-browser-migrations"