Skip to content

Commit bd5973a

Browse files
committed
commit
2 parents 1057dac + acdbd73 commit bd5973a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All Notable changes to `laravel-permission` will be documented in this file
55
## 1.7.0 - 2016-01-23
66
- added support for Laravel 5.4
77

8+
## 1.6.1 - 2016-01-19
9+
- make exception logging more verbose
10+
811
## 1.6.0 - 2016-12-27
912
- added `Role` scope
1013

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can test if a user has a permission with Laravel's default `can`-function.
3030
$user->can('edit articles');
3131
```
3232

33-
If you want a drop-in middleware to check permissions, check out our authorize package: https://github.com/spatie/laravel-authorize
33+
If you are using a Laravel version lower than 5.2.28, and want a drop-in middleware to check permissions, check out our authorize package: https://github.com/spatie/laravel-authorize
3434

3535
Spatie is webdesign agency in Antwerp, Belgium. You'll find an overview of all
3636
our open source projects [on our website](https://spatie.be/opensource).

src/PermissionRegistrar.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ public function registerPermissions()
5050
});
5151

5252
return true;
53-
} catch (Exception $e) {
54-
Log::alert('Could not register permissions');
53+
} catch (Exception $exception) {
54+
Log::alert(
55+
"Could not register permissions because {$exception->getMessage()}" . PHP_EOL
56+
. $exception->getTraceAsString());
5557

5658
return false;
5759
}

0 commit comments

Comments
 (0)