Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel get url path

$currentURL = URL::current(); PHP.
$url = URL::to("/"); or use $url = url('/'); PHP.
$route = Route::current()->getName(); PHP.
$prefix = Request::route()->getPrefix(); PHP.
Comment

current url route laravel

Route::current()
############### OR ####################
$request->getRequestUri()
Comment

laravel get current route url

@if(Request::url() === 'your url here')
    // code
@endif
Comment

laravel get route path uri

Route::getFacadeRoot()->current()->uri();
Comment

laravel get current route url

if (Request::is('admin/*'))
{
    // code
}
Comment

PREVIOUS NEXT
Code Example
Php :: laravel add request 
Php :: link to internal pages in wp php 
Php :: Hide Add to cart button on specific products 
Php :: laravel collection to json 
Php :: laravel import data from csv 
Php :: Main features of php 
Php :: add custom shortcode in contact form 7 
Php :: PHP OOP - Static properties 
Php :: keep line breaks in textarea 
Php :: php preg replace 
Php :: acf add options page to custom post type 
Php :: PHP join() Function 
Php :: acos() php 
Php :: Calling itself a static function in php 
Php :: get_the_terms 
Php :: laravel datatable render html 
Php :: how to check if file is empty in php 
Php :: how to run php in js 
Php :: php convert string to array 
Php :: foreach loop not working in php 
Php :: custom pagination in laravel 
Php :: unique validation laravel 
Php :: square php 
Php :: how to check if a user is logged in in a non middleware controller in laravel 
Php :: how to filter laravel eloquent 
Php :: laravel isset 
Php :: this app is not allowed to query for scheme fb-messenger" 
Php :: like button phpAdd Answer 
Php :: laravel longblob migration 
Php :: remove laravel/octane trminal 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =