Skip to content

Instantly share code, notes, and snippets.

@abdullahbutt
Created October 6, 2017 10:22
Show Gist options
  • Select an option

  • Save abdullahbutt/f46e07f5fa3d83d585851a1b2ae4b92a to your computer and use it in GitHub Desktop.

Select an option

Save abdullahbutt/f46e07f5fa3d83d585851a1b2ae4b92a to your computer and use it in GitHub Desktop.
laravel check current page route
//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