Skip to content

Commit

Permalink
Merge pull request #30 from mostafamaklad/v1.3
Browse files Browse the repository at this point in the history
V1.3.2
  • Loading branch information
mostafamaklad committed Sep 19, 2017
2 parents 87cd19c + 7ea77d1 commit 9f9f3ae
Show file tree
Hide file tree
Showing 6 changed files with 350 additions and 202 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,11 +2,18 @@

All Notable changes to `laravel-permission-mongodb` will be documented in this file.

## 1.3.2-alpha - 2017-09-19

### Added
- Add the support of `laravel 5.5`


## 1.3.1 - 2017-09-12

### Removed
- Remove the support of `laravel 5.5` till `jenssegers/laravel-mongodb` supports it


## 1.3.1 - 2017-09-11

### Added
Expand All @@ -15,6 +22,7 @@ All Notable changes to `laravel-permission-mongodb` will be documented in this f
### Fixed
- Register Blade extensions


## 1.3.0 - 2017-09-09

### Added
Expand All @@ -24,25 +32,29 @@ All Notable changes to `laravel-permission-mongodb` will be documented in this f
### Changed
- Register Blade extensions in boot instead of register


## 1.2.2 - 2017-09-07

### Fixed
- Recreate Exceptions
- Fix most PHP Code Sniffer errors
- Fix some PHP Mess Detector errors


## 1.2.1 - 2017-09-05

### Added
- Let middleware use caching
- Allow logging while exceptions


## 1.2.0 - 2017-09-03

### Added
- Add getRoleNames() method to return a collection of assigned roles
- Add getPermissionNames() method to return a collection of all assigned permissions


## 1.1.0 - 2017-09-01

### Added
Expand All @@ -52,6 +64,7 @@ All Notable changes to `laravel-permission-mongodb` will be documented in this f
- Remove the role and permission relation when delete user
- Code quality enhancements


## 1.0.0 - 2017-08-21

### Added
Expand Down
13 changes: 6 additions & 7 deletions README.md
Expand Up @@ -10,7 +10,6 @@
[![Dependency Status][ico-gemnasium]][link-gemnasium]
[![SensioLabsInsight][ico-sensiolabs]][link-sensiolabs]
[![Total Downloads][ico-downloads]][link-packagist]
[![Laravel 5.3.x][ico-laravel-5.3]][link-laravel-5.3]
[![Laravel 5.4.x][ico-laravel-5.4]][link-laravel-5.4]
[![Laravel 5.5.x][ico-laravel-5.5]][link-laravel-5.5]

Expand All @@ -31,7 +30,7 @@ $role->givePermissionTo('edit articles');

If you're using multiple guards we've got you covered as well. Every guard will have its own set of permissions and roles that can be assigned to the guard's users. Read about it in the [using multiple guards](#using-multiple-guards) section of the readme.

Because all permissions will be registered on [Laravel's gate](https://laravel.com/docs/5.4/authorization), you can test if a user has a permission with Laravel's default `can` function:
Because all permissions will be registered on [Laravel's gate](https://laravel.com/docs/5.5/authorization), you can test if a user has a permission with Laravel's default `can` function:

```php
$user->can('edit articles');
Expand Down Expand Up @@ -64,15 +63,17 @@ $user->can('edit articles');

## Installation

This package can be used in Laravel 5.4.
This package can be used in Laravel 5.4 and up.

> Note: use 1.3.2-alpha version if you are using Laravel 5.5
You can install the package via composer:

``` bash
composer require mostafamaklad/laravel-permission-mongodb
```

In Laravel 5.4 the service provider will automatically get registered. In older versions of the framework just add the service provider in `config/app.php` file:
In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in `config/app.php` file:

```php
'providers' => [
Expand Down Expand Up @@ -692,9 +693,7 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
[link-laravel-5.4]: https://laravel.com/docs/5.4
[ico-laravel-5.4]: https://img.shields.io/badge/Laravel-5.4.x-brightgreen.svg?style=flat-square
[link-laravel-5.5]: https://laravel.com/docs/5.5
[ico-laravel-5.5]: https://img.shields.io/badge/Laravel-5.5.x-red.svg?style=flat-square
[link-laravel-5.3]: https://laravel.com/docs/5.3
[ico-laravel-5.3]: https://img.shields.io/badge/Laravel-5.3.x-red.svg?style=flat-square
[ico-laravel-5.5]: https://img.shields.io/badge/Laravel-5.5.x-brightgreen.svg?style=flat-square

[link-travis]: https://travis-ci.org/mostafamaklad/laravel-permission-mongodb
[ico-travis]: https://img.shields.io/travis/mostafamaklad/laravel-permission-mongodb/master.svg?style=flat-square
Expand Down
15 changes: 7 additions & 8 deletions composer.json
Expand Up @@ -30,18 +30,17 @@
}
],
"require": {
"php" : ">=7.0",
"illuminate/auth": "~5.4.0",
"illuminate/container": "~5.4.0",
"illuminate/contracts": "~5.4.0",
"jenssegers/mongodb": "^3.2"
"php": ">=7.0",
"illuminate/auth": "~5.4.0|~5.5.0",
"illuminate/container": "~5.4.0|~5.5.0",
"illuminate/contracts": "~5.4.0|~5.5.0",
"jenssegers/mongodb": "~5.4.0|3.3.0-alpha"
},
"require-dev": {
"codeclimate/php-test-reporter": "^0.4.4",
"monolog/monolog": "^1.22",
"orchestra/testbench": "~3.4.2",
"php-coveralls/php-coveralls": "^1.0",
"phpunit/phpunit": "^5.7|6.3"
"orchestra/testbench": "~3.4.0|~3.5.0",
"phpunit/phpunit": "^5.7|^6.3"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 9f9f3ae

Please sign in to comment.