Skip to content

Instantly share code, notes, and snippets.

@lahmacun
Last active October 13, 2022 09:38
Show Gist options
  • Save lahmacun/dcaf73f7673e03222a8668d9095c6114 to your computer and use it in GitHub Desktop.
Save lahmacun/dcaf73f7673e03222a8668d9095c6114 to your computer and use it in GitHub Desktop.
@if (env('APP_ENV') == 'local')
<div class="debug-bar">
<div>
<b>Current Route:</b> {{ request()->route()->getName() }}
&nbsp;&nbsp;&nbsp;&nbsp;
<b>Mandatory Parameters:</b> {{ implode(', ', request()->route()->parameterNames()) }}
&nbsp;&nbsp;&nbsp;&nbsp;
<b>Method:</b> {{ request()->route()->getControllerClass() . '::' . request()->route()->getActionMethod() . '()' }}
</div>
</div>
<style>
body {
padding-bottom: 40px;
}
.debug-bar {
z-index: 99999;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 40px;
background: #555;
color: #fff;
display: flex;
align-items: center;
padding: 0 10px;
}
</style>
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment