PHPackages                             fisharebest/laravel-assets - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fisharebest/laravel-assets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fisharebest/laravel-assets
==========================

Asset management for Laravel

2.1.0(4y ago)208.1k2GPL-3.0-or-laterPHP

Since Nov 3Pushed 4y ago3 watchersCompare

[ Source](https://github.com/fisharebest/laravel-assets)[ Packagist](https://packagist.org/packages/fisharebest/laravel-assets)[ RSS](/packages/fisharebest-laravel-assets/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (9)Versions (17)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/61446dd093ef5e4b2e8b45ff8326720a36f67b7850cd307393c28e37b45025cd/68747470733a2f2f706f7365722e707567782e6f72672f66697368617265626573742f6c61726176656c2d6173736574732f762f737461626c652e737667)](https://packagist.org/packages/fisharebest/laravel-assets)[![Unit tests](https://github.com/fisharebest/laravel-assets/actions/workflows/phpunit.yaml/badge.svg)](https://github.com/fisharebest/laravel-assets/actions/workflows/phpunit.yaml/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/5d08a7213afc940bcbb6238ba2dabf608ff7fc14dcb0d7e008f82f76e291aeae/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f66697368617265626573742f6c61726176656c2d6173736574732f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/fisharebest/laravel-assets?branch=master)[![SymfonyInsight](https://camo.githubusercontent.com/c77866af451117877d6f2b347b59f170fe648f9a6cee993a206a3883d489c6cd/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f36316631303638382d373663662d343665362d626637342d3264373039663038653434622f6d696e692e737667)](https://insight.symfony.com/projects/61f10688-76cf-46e6-bf74-2d709f08e44b)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2aec7cc9455fc948b072606e0d4c1d5c50bf9406de887caa3a082bac6755be91/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66697368617265626573742f6c61726176656c2d6173736574732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/fisharebest/laravel-assets/?branch=main)

laravel-assets
==============

[](#laravel-assets)

Simple, flexible asset management for Laravel 5 - 8. Combine and minify your CSS and JS files to make your website faster.

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

[](#installation)

Add the dependency to `composer.json`:

```
composer require fisharebest/laravel-assets

```

Starting with Laravel 5.5, packages are discovered automatically. For earlier versions, you must add the service provider and facade to `config/app.php`.

```
return [
    'providers' => [
        Fisharebest\LaravelAssets\AssetsServiceProvider::class,
    ],
    'aliases' => [
        'Assets' => Fisharebest\LaravelAssets\AssetsFacade::class,
    ],
]
```

Create a configuration file, `config/assets.php`, containing default values. Edit the settings in this file to match your project’s directory structure.

```
$ php artisan vendor:publish --provider="Fisharebest\LaravelAssets\AssetsServiceProvider"

```

Step 1. How to add assets
-------------------------

[](#step-1--how-to-add-assets)

You would usually add assets in each of your templates (layouts, views, partials, etc.) that requires them.

```
