You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Fixed and no bugs anymore 🆙
This commit is contained in:
@@ -3,27 +3,27 @@
|
||||
use App\Services\HousekeepingPermissionsService;
|
||||
use App\Services\PermissionsService;
|
||||
use App\Services\SettingsService;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
if (! function_exists('setting')) {
|
||||
function setting(string $setting): string
|
||||
{
|
||||
return resolve(SettingsService::class)->getOrDefault($setting);
|
||||
return app(SettingsService::class)->getOrDefault($setting);
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('hasPermission')) {
|
||||
function hasPermission(string $permission): string
|
||||
{
|
||||
return resolve(PermissionsService::class)->getOrDefault($permission);
|
||||
return app(PermissionsService::class)->getOrDefault($permission);
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('hasHousekeepingPermission')) {
|
||||
function hasHousekeepingPermission(string $permission): string
|
||||
{
|
||||
return resolve(HousekeepingPermissionsService::class)->getOrDefault($permission);
|
||||
return app(HousekeepingPermissionsService::class)->getOrDefault($permission);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@ if (! function_exists('findMigration')) {
|
||||
return basename($filename);
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
@@ -74,4 +73,4 @@ if (! function_exists('dropForeignKeyIfExists')) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user