Detect if current page is the web root
Within the Blade templating of Laravel, the following would suffice
@if(Request::is('/'))
// The condition you require
@endif
You can also do it quickly the following way
if(Request::is('/')) {
//your code here
}
if (Route::getCurrentRoute()->uri() == '/')
{
// You're on the root route
}