Skip to content

Commit 2e75024

Browse files
committed
docs: update installation document with instructions for intervention/image v3
1 parent eecae14 commit 2e75024

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

docs/installation.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,16 @@
2525
composer require unisharp/laravel-filemanager
2626
```
2727

28-
1. (optional) Edit `config/app.php` :
28+
1. (optional) Install required dependency with `v3.*` of `intervention/image`:
2929

30-
\* *For Laravel 5.5 and up, skip to step 3. All service providers and facades are automatically discovered.*
30+
This package use `intervention/image` to perform image cropping/resizing and generating thumbnails. Since `v3.*` of `intervention/image` does not support Laravel by default, the service provider need to be installed with the following scripts.
3131

32-
Add service providers
33-
34-
```php
35-
UniSharp\LaravelFilemanager\LaravelFilemanagerServiceProvider::class,
36-
Intervention\Image\ImageServiceProvider::class,
37-
```
38-
39-
And add class aliases
40-
41-
```php
42-
'Image' => Intervention\Image\Facades\Image::class,
32+
```bash
33+
composer require intervention/image-laravel
34+
php artisan vendor:publish --provider="Intervention\Image\Laravel\ServiceProvider"
4335
```
4436

45-
Code above is for Laravel 5.1.
46-
In Laravel 5.0 should leave only quoted class names.
37+
\* *Do not run these scripts if you use `v2.*` of `intervention/image`.*
4738

4839
1. Publish the package's config and assets :
4940

0 commit comments

Comments
 (0)