fuelviews / laravel-responsive-images
Post-processed responsive images blade component for Laravel.
v0.0.6
2023-11-28 23:50 UTC
Requires
- php: ^8.1
- illuminate/support: ^10.0
- illuminate/view: ^10.0
Requires (Dev)
- phpunit/phpunit: ^10.0
README
Post-processed responsive images blade component for Laravel
1. Process images
Process Responsive Images Script
2. Copy images
Copy processed images into the public/images/ directory
3. Install package
composer require fuelviews/laravel-responsiveimages
Publish config (optional)
php artisan vendor:publish --provider="Fuelviews\ResponsiveImages\ResponsiveImagesServiceProvider" --tag="config"
Publish views (optional)
php artisan vendor:publish --provider="Fuelviews\ResponsiveImages\ResponsiveImagesServiceProvider" --tag="views"
Publish tests (optional)
php artisan vendor:publish --provider="Fuelviews\ResponsiveImages\ResponsiveImagesServiceProvider" --tag="tests"
Basic usage
<x-fuelviews::responsive-images
image="logo.png"
class="h-96 w-auto"
/>
or
<x-fuelviews::responsive-images image="logo.png" class="h-96 w-auto" />