Created
June 4, 2018 02:30
-
-
Save ifirmawan/4dde8ba795634db429589e90a90222a4 to your computer and use it in GitHub Desktop.
Get current route
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
<?php | |
$route = Route::getCurrentRoute(); | |
$route->prefix; //ex: api/ | |
$route->action['as']; //ex : api.items.index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment