Created
October 6, 2017 10:22
-
-
Save abdullahbutt/f46e07f5fa3d83d585851a1b2ae4b92a to your computer and use it in GitHub Desktop.
laravel check current page route
This file contains hidden or 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
| //To match Route Alias with current page | |
| @if(Route::current()->getName() == 'new.cart.checkout') | |
| @endif | |
| //OR | |
| @if (\Route::current()->getName() =='plan.selection') | |
| @endif | |
| // To Match Current URL with Route URL: | |
| @if(Request::path() == 'checkout') | |
| @endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment