Skip to main content

Posts

Showing posts with the label spatie package in laravel 8

Laravel 8 Image With Grayscale Example

Hi Guys, Today,I will learn you how to use image with grayscale in laravel 8. We will show example of image with grayscale in laravel 8. Spatie package is Image manipulation doesn't have to be hard. This PHP package makes it super easy to apply common manipulations to images like resizing, cropping and adding effects. Here, I will give you full example for simply image with grayscale using Laravel 8 as bellow. Step 1 : Install Laravel 8 Application we are going from scratch, So we require to get fresh Laravel application using bellow command, So open your terminal OR command prompt and run bellow command: composer create-project --prefer-dist laravel/laravel blog Step 2 : Install Spatie Package In this step, i will install spatie package for bellow command. composer require spatie/image Step 3: Create Routes In next step, we will add new two routes in web.php file. One route for generate image upload form and another for post method So let's simply create both route as be