Skip to content

Commit ab7f354

Browse files
committed
add L5.5 support and package auto discover
1 parent 32c3127 commit ab7f354

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

composer.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@
1212
],
1313
"require": {
1414
"php": ">=5.6.4",
15-
"laravelcollective/html": "^5.4.0"
15+
"laravelcollective/html": "^5.4.0|^5.5.0"
1616
},
1717
"autoload": {
1818
"psr-4": {
1919
"jeremykenedy\\laravelusers\\": "src/"
2020
}
21+
},
22+
"extra": {
23+
"laravel": {
24+
"providers": [
25+
"jeremykenedy\\laravelusers\\LaravelUsersServiceProvider"
26+
]
27+
}
28+
},
29+
"config": {
30+
"sort-packages": true
2131
}
2232
}

readme.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
## Introduction
88

99
A Users Management [Package](https://packagist.org/packages/jeremykenedy/laravel-users) that includes all necessary routes, views, models, and controllers for a user management dashboard and associated pages for managing Laravels built in user scaffolding.
10-
Built for Laravel 5.2, 5.3, and 5.4+.
10+
Built for Laravel 5.2, 5.3, 5.4, and 5.5+.
1111

1212
## Requirements
1313

14-
* [Laravel 5.2, 5.3, or 5.4 or newer](https://laravel.com/docs/installation)
14+
* [Laravel 5.2, 5.3, 5.4, and 5.5+](https://laravel.com/docs/installation)
1515

1616
Example new project creation command:
1717

@@ -41,19 +41,34 @@ Built for Laravel 5.2, 5.3, and 5.4+.
4141
4242
Laravel 5.4 use:
4343
44+
```
45+
composer require jeremykenedy/laravel-users:1.4.0
46+
```
47+
48+
Laravel 5.5+ use:
49+
4450
```
4551
composer require jeremykenedy/laravel-users
4652
```
4753
54+
2. Register Package
55+
* Laravel 5.4 and up
56+
Uses package auto discovery feature, no need to edit the `config/app.php` file.
4857
49-
2. Register the package with laravel in `config/app.php` under `providers` with the following:
58+
* Laravel 5.4 and below
59+
Register the package with laravel in `config/app.php` under `providers` with the following:
5060
5161
```
5262
Collective\Html\HtmlServiceProvider::class,
5363
jeremykenedy\laravelusers\LaravelUsersServiceProvider::class,
5464
```
5565
56-
3. Register the dependencies aliases with laravel in `config/app.php` section under `aliases` with the following:
66+
3. Register the dependencies aliases
67+
* Laravel 5.4 and up
68+
Uses package auto discovery feature, no need to edit the `config/app.php` file.
69+
70+
* Laravel 5.4 and below
71+
In `config/app.php` section under `aliases` with the following:
5772
5873
```
5974
'Form' => Collective\Html\FormFacade::class,

0 commit comments

Comments
 (0)