Skip to content

Commit 4387f2a

Browse files
committed
Namespace changes for below laravel 8 packages
1 parent d9f7b7a commit 4387f2a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Laravel Entrust (Laravel 5, 6, 7 and 8 Package)
1+
# Laravel Entrust (Laravel 5, 6 and 7 Package)
22
Handle Role-based Permissions for your Laravel application.
33

44
## Contents
@@ -316,4 +316,4 @@ Laravel-Entrust is free software distributed under the terms of the MIT license.
316316
Support follows PSR-1 and PSR-4 PHP coding standards, and semantic versioning.
317317

318318
Please report any issue you find in the issues page.
319-
Pull requests are always welcome.
319+
Pull requests are always welcome.

src/Traits/LaravelEntrustUserTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function cachedRoles()
2424
{
2525
$userPrimaryKey = $this->primaryKey;
2626
$cacheKey = 'entrust_roles_for_user_'.$this->$userPrimaryKey;
27-
if(Cache::getStore() instanceof TaggableStore) {
27+
if(Cache::getStore() instanceof \Illuminate\Cache\TaggableStore) {
2828
return Cache::tags(Config::get('entrust.tables.role_user'))->remember($cacheKey, Config::get('cache.ttl', 60), function () {
2929
return $this->roles()->get();
3030
});
@@ -39,7 +39,7 @@ protected function cachedRoles()
3939
*/
4040
protected function flushCache()
4141
{
42-
if (Cache::getStore() instanceof TaggableStore) {
42+
if (Cache::getStore() instanceof \Illuminate\Cache\TaggableStore) {
4343
Cache::tags(Config::get('entrust.tables.role_user'))->flush();
4444
}
4545
return $this;

src/resources/views/seeder.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function run()
4444

4545
$permissions[] = \{{ $permission }}::firstOrCreate([
4646
'name' => $permissionValue . '-' . $module,
47-
'display_name' => ucfirst($permissionValue) . ' ' . ucfirst($module),
48-
'description' => ucfirst($permissionValue) . ' ' . ucfirst($module),
47+
'display_name' => ucfirst($permissionValue) . ' ' . ucwords(str_replace('_', ' ', $module)),
48+
'description' => ucfirst($permissionValue) . ' ' . ucwords(str_replace('_', ' ', $module)),
4949
])->id;
5050

5151
$this->command->info('Creating Permission to '.$permissionValue.' for '. $module);

0 commit comments

Comments
 (0)