if (filter_var($string, FILTER_VALIDATE_URL)) { // you're good }
@if(Request::url() === 'your url here') // code @endif if (Request::is('admin/*')) { // code }