Last active
October 13, 2022 09:38
-
-
Save lahmacun/dcaf73f7673e03222a8668d9095c6114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (env('APP_ENV') == 'local') | |
<div class="debug-bar"> | |
<div> | |
<b>Current Route:</b> {{ request()->route()->getName() }} | |
| |
<b>Mandatory Parameters:</b> {{ implode(', ', request()->route()->parameterNames()) }} | |
| |
<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