Skip to content

Commit ce1e2da

Browse files
authored
Use config helper for debug policies (alexjustesen#112)
1 parent 47eaca2 commit ce1e2da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Policies/FailedJobPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ class FailedJobPolicy
1111

1212
public function viewAny(User $user): bool
1313
{
14-
return env('APP_DEBUG');
14+
return config('app.debug');
1515
}
1616
}

app/Providers/FilamentServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function register()
2828
public function boot()
2929
{
3030
Logs::can(function (User $user) {
31-
return env('APP_DEBUG');
31+
return config('app.debug');
3232
});
3333

3434
Filament::serving(function () {

0 commit comments

Comments
 (0)