PHPackages                             filepreviews/filepreviews-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. filepreviews/filepreviews-laravel

ActiveLibrary[File &amp; Storage](/categories/file-storage)

filepreviews/filepreviews-laravel
=================================

Laravel 5 service provider for FilePreviews.io

v1.0.0(10y ago)77.0k[2 issues](https://github.com/GetBlimp/filepreviews-laravel/issues)MITPHPPHP &gt;=5.5.9

Since Nov 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/GetBlimp/filepreviews-laravel)[ Packagist](https://packagist.org/packages/filepreviews/filepreviews-laravel)[ Docs](http://filepreviews.io)[ RSS](/packages/filepreviews-filepreviews-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

filepreviews-laravel
====================

[](#filepreviews-laravel)

Laravel 5 service provider for FilePreviews.io

Installation
------------

[](#installation)

```
$ composer require filepreviews/filepreviews-laravel

```

To use the FilePreviews Service Provider, you must register the provider when bootstrapping your Laravel application.

Find the `providers` key in your `config/app.php` and register the FilePreviews Service Provider.

```
    'providers' => [
        // ...

        FilePreviews\Laravel\FilePreviewsServiceProvider::class,
    ]
```

Find the `aliases` key in your `config/app.php` and add the FilePreviews facade alias.

```
    'aliases' => [
        // ...

        'FilePreviews' => FilePreviews\Laravel\FilePreviewsFacade::class,
    ]
```

To customize the configuration file, publish the package configuration using Artisan.

```
$ php artisan vendor:publish

```

Update your settings in the generated `config/filepreviews.php` configuration file.

```
