Skip to content

Commit

Permalink
Merge pull request #175 from kontenta/handle-booleans-in-config-view
Browse files Browse the repository at this point in the history
Display booleans and numbers nicely
  • Loading branch information
bjuppa authored May 14, 2020
2 parents 73825fe + dc47ff8 commit d784da4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion resources/views/dashboard/laravelConfig.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@
@foreach(['app.name', 'app.url', 'app.env', 'app.debug', 'mail.from.address', 'mail.from.name', 'auth.defaults.guard', 'kontour.guard', 'session.cookie', 'session.lifetime', 'database.default', 'cache.default', 'filesystems.default'] as $configKey)
<div>
<dt><code>{{ $configKey }}</code></dt>
<dd>{{ config($configKey) }}</dd>
<dd>
@if(config($configKey) === true)
<code>true</code>
@elseif(config($configKey) === false)
<code>false</code>
@elseif(is_numeric(config($configKey)))
<code>{{ config($configKey) }}</code>
@else
{{ config($configKey) }}
@endif
</dd>
</div>
@endforeach
</dl>
Expand Down

0 comments on commit d784da4

Please sign in to comment.