Skip to content

Commit

Permalink
Fixed old Laravel compatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Dec 13, 2020
1 parent c335936 commit 1b15c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/scripts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<script>
const trans = {!! json_encode(\PrettyRoutes\Facades\Trans::all(), JSON_UNESCAPED_UNICODE) !!};
const isEnabledCleanup = {{ config('app.env') !== 'production' && config('app.debug') === true ? 'true' : 'false' }};
const isEnabledCleanup = {{ config('app.env') !== 'production' && (bool) config('app.debug') === true ? 'true' : 'false' }};
const colorScheme = () => {
switch ('{{ config('pretty-routes.color_scheme', 'auto') }}') {
Expand Down
2 changes: 1 addition & 1 deletion src/Http/PrettyRoutesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function routes(Routes $routes)
*/
public function clear()
{
if (config('app.env') !== 'production' && config('app.debug') === true) {
if (config('app.env') !== 'production' && (bool) config('app.debug') === true) {
Artisan::call('route:clear');

return response()->json('ok');
Expand Down

0 comments on commit 1b15c5d

Please sign in to comment.