Skip to content

Instantly share code, notes, and snippets.

View itsnunolemos's full-sized avatar

Nuno Lemos itsnunolemos

View GitHub Profile
@itsnunolemos
itsnunolemos / MediaPathGenerator.php
Created June 8, 2020 21:43
laravel-medialibrary MediaPathGenerator
<?php
// app/Http/Helpers/MediaPathGenerator.php
namespace App\Helpers;
use Spatie\MediaLibrary\Models\Media;
use Spatie\MediaLibrary\PathGenerator\PathGenerator;
class MediaPathGenerator implements PathGenerator