airdev / medias
Installs: 23
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/airdev/medias
Requires
- php: ^7.3|^8.0
- ebess/advanced-nova-media-library: ^3.6
- khalin/nova-link-field: ^1.2
- laravel/framework: ^8.0.0
- spatie/laravel-medialibrary: ^9.0.0
README
A package that quickly provide medias with webp conversion
It's only working with Airdev web base project.
Installation
composer require airdev/medias
Next, add it to the Laravel's package providers in config/app.php
/* * Package Service Providers... */ Airdev\Medias\AirdevMediasProvider::class,
Publish migrations, configure it if needed, the migrate.
php artisan vendor:publish --tag=airdev-medias-migrations php artisan migrate
Usage
You can now post image on Nova's Interface.
Call the blade component into your view
<x-airdev-picture slug="your-slug"></x-airdev-picture>
You can add a custom class to the generated image tag, or multiple class
<x-airdev-picture slug="your-slug" class="img-fluid"></x-airdev-picture> <x-airdev-picture slug="your-slug" class="img-fluid my-second-class"></x-airdev-picture>