PHP code example of x-laravel / spatie-medialibrary-uuid-path-generator

1. Go to this page and download the library: Download x-laravel/spatie-medialibrary-uuid-path-generator 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/ */

    

x-laravel / spatie-medialibrary-uuid-path-generator example snippets


'path_generator' => XLaravel\Spatie\MediaLibrary\UuidPathGenerator\PathGenerators\UuidLevel2PathGenerator::class,

'file_remover_class' => XLaravel\Spatie\MediaLibrary\UuidPathGenerator\UuidFileRemover::class,

'path_generator' => XLaravel\Spatie\MediaLibrary\UuidPathGenerator\PathGenerators\UuidLevel2PathGenerator::class,
'file_remover_class' => XLaravel\Spatie\MediaLibrary\UuidPathGenerator\UuidFileRemover::class,
bash
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="config"
bash
php artisan media:clean-uuid