v1.3 2021-08-17 08:02 UTC

This package is auto-updated.

Last update: 2022-06-17 10:03:09 UTC


A package that quickly provide medias with webp conversion

It's only working with Airdev web base project.


composer require airdev/medias

Next, add it to the Laravel's package providers in config/app.php

 * Package Service Providers...

Publish migrations, configure it if needed, the migrate.

php artisan vendor:publish --tag=airdev-medias-migrations
php artisan migrate


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>