Skip to content

Commit

Permalink
docs: update installation document with instructions for intervention…
Browse files Browse the repository at this point in the history
…/image v3
  • Loading branch information
streamtw committed Apr 17, 2024
1 parent eecae14 commit 2e75024
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,16 @@
composer require unisharp/laravel-filemanager
```

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

\* *For Laravel 5.5 and up, skip to step 3. All service providers and facades are automatically discovered.*
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.

Add service providers

```php
UniSharp\LaravelFilemanager\LaravelFilemanagerServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
```

And add class aliases

```php
'Image' => Intervention\Image\Facades\Image::class,
```bash
composer require intervention/image-laravel
php artisan vendor:publish --provider="Intervention\Image\Laravel\ServiceProvider"
```

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

1. Publish the package's config and assets :
Expand Down

0 comments on commit 2e75024

Please sign in to comment.