Skip to content

Commit 77af068

Browse files
authored
Merge pull request #236 from phoenix-group-of-virginia/master
Update the readme to reflect new major version/some laravel specific changes **NEEDS NEW VERSIONS TAGGED
2 parents e59b054 + 1fd5735 commit 77af068

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

README.md

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Kodeine/Laravel-ACL
33

4-
[![Laravel](https://img.shields.io/badge/Laravel-~6.0-orange.svg?style=flat-square)](http://laravel.com)
4+
[![Laravel](https://img.shields.io/badge/Laravel-~6.0-green.svg?style=flat-square)](http://laravel.com)
55
[![Source](http://img.shields.io/badge/source-kodeine/laravel--acl-blue.svg?style=flat-square)](https://github.com/kodeine/laravel-acl/)
66
[![Build Status](https://img.shields.io/travis/kodeine/laravel-acl/master?style=flat-square)](https://travis-ci.org/kodeine/laravel-acl)
77
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://tldrlegal.com/license/mit-license)
@@ -21,35 +21,35 @@ Laravel ACL adds role based permissions to built in Auth System of Laravel 6.0+.
2121

2222
# <a name="requirements"></a>Requirements
2323

24-
* This package requires PHP 7.2+
25-
* Laravel 6.0+
24+
* Version 2.x of this package requires PHP 7.2+ and Laravel 6.0+
25+
* Version 1.x requires PHP 5.6+ and Laravel 5.0+
2626

2727
# <a name="getting-started"></a>Getting Started
2828

29-
1. Require the package in your `composer.json` and update your dependency with `composer update`:
29+
Install the package using composer
3030

3131
```
32-
"require": {
33-
...
34-
"kodeine/laravel-acl": "master",
35-
...
36-
},
32+
composer require kodeine/laravel-acl
3733
```
3834

39-
2. Add the package to your application service providers in `config/app.php`.
35+
If you need to support Laravel 5.x, make sure to install version 1.x
4036

41-
```php
42-
'providers' => [
37+
```
38+
composer require kodeine/laravel-acl "^1.0"
39+
```
4340

44-
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
45-
'Illuminate\Auth\AuthServiceProvider',
46-
...
47-
'Kodeine\Acl\AclServiceProvider',
41+
2. If you are using Laravel before version 5.4, manually register the service provider in your config/app.php file
4842

43+
```php
44+
'providers' => [
45+
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
46+
'Illuminate\Auth\AuthServiceProvider',
47+
...
48+
'Kodeine\Acl\AclServiceProvider',
4949
],
5050
```
5151

52-
3. Publish the package migrations to your application and run these with `php artisan migrate.
52+
3. Publish the package configuartion files and add your own models to the list of ACL models"
5353

5454
```
5555
$ php artisan vendor:publish --provider="Kodeine\Acl\AclServiceProvider"
@@ -62,10 +62,8 @@ $ php artisan vendor:publish --provider="Kodeine\Acl\AclServiceProvider"
6262

6363
```php
6464
protected $routeMiddleware = [
65-
66-
....
67-
'acl' => 'Kodeine\Acl\Middleware\HasPermission',
68-
65+
....
66+
'acl' => 'Kodeine\Acl\Middleware\HasPermission',
6967
];
7068
```
7169

@@ -80,20 +78,29 @@ use Authenticatable, CanResetPassword, HasRole;
8078
}
8179
```
8280

81+
6. Run the migrations to generate your roles and permissions tables
82+
83+
```
84+
php artisan migrate
85+
```
86+
8387
# <a name="documentation"></a>Documentation
8488

8589
Follow along the [Wiki](https://github.com/kodeine/laravel-acl/wiki) to find out more.
8690

8791
# <a name="roadmap"></a>Roadmap
8892

89-
Here's the TODO list for the next release (**2.0**).
93+
Here's the TODO list for the next release.
9094

9195
* [ ] Refactoring the source code.
9296
* [ ] Correct all issues.
9397
* [ ] Adding cache to final user permissions.
9498

9599
# <a name="change-logs"></a>Change Logs
96100

101+
**September 14 2019**
102+
* [x] Updated the readme to reflect new major release
103+
97104
**September 13, 2019**
98105
* [x] Added support for Laravel 6
99106

0 commit comments

Comments
 (0)