Skip to content

Commit bb9f706

Browse files
committed
Added support for Laravel 5.5 Package Discovery feature
1 parent 74e92e3 commit bb9f706

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ An ultra-simple-to-use assets management PHP library.
55

66
[![Build Status](https://travis-ci.org/Stolz/Assets.png?branch=master)](https://travis-ci.org/Stolz/Assets) [![Join the chat at https://gitter.im/Stolz/Assets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Stolz/Assets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
77

8-
1. [Features](#features).
8+
- [Features](#features).
99
- [Supported frameworks](#frameworks).
1010
- [Installation](#installation).
1111
- [Usage](#usage).
12-
- [Views](#views).
13-
- [Controllers](#controllers).
12+
- [Views](#views).
13+
- [Controllers](#controllers).
1414
- [Configuration](#configuration).
15-
- [Collections](#collections).
16-
- [Pipeline](#pipeline).
17-
- [More options](#options).
18-
- [Multitenancy](#multitenancy).
15+
- [Collections](#collections).
16+
- [Pipeline](#pipeline).
17+
- [More options](#options).
18+
- [Multitenancy](#multitenancy).
1919
- [Non static interface usage](#nonstatic).
2020
- [Sample collections](#samples).
2121
- [Troubleshooting / F.A.Q.](#troubleshooting).
@@ -51,7 +51,9 @@ In your project base directory run
5151

5252
composer require stolz/assets
5353

54-
Then edit `config/app.php` and add the service provider within the `providers` array.
54+
If you are using Laravel version 5.5 or later there is nothing else you need to do. The service provider will be automatically loaded for you.
55+
56+
If you are using an older version of Laravel or you disabled the package discovery feature, then you have to manually edit `config/app.php` file and add the service provider within the `providers` array.
5557

5658
'providers' => [
5759
//...

composer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "stolz/assets",
33
"description": "An ultra-simple-to-use assets management library",
44
"keywords": ["assets", "asset", "css", "js", "javascript", "pipeline", "minify", "laravel", "agnostic"],
5+
"license": "MIT",
56
"authors": [
67
{
78
"name": "Stolz",
@@ -38,5 +39,11 @@
3839
"optimize-autoloader": true,
3940
"preferred-install": "dist"
4041
},
41-
"license": "MIT"
42+
"extra": {
43+
"laravel": {
44+
"providers": [
45+
"Stolz\\Assets\\Laravel\\ServiceProvider"
46+
]
47+
}
48+
}
4249
}

0 commit comments

Comments
 (0)