Illuminate\Routing\UrlGenerator::full PHP Méthode

full() public méthode

Get the full URL for the current request.
public full ( ) : string
Résultat string
    public function full()
    {
        return $this->request->fullUrl();
    }

Usage Example

 /**
  * Return true if current page is $page.
  */
 public function isPage(string $page, array $parameters = []) : bool
 {
     // Check if $page is a route name
     if ($this->route->has($page)) {
         if ($parameters) {
             return $this->url->current() == $this->url->route($page, $parameters);
         }
         return $this->route->currentRouteName() == $page;
     }
     return str_replace($this->request->root() . '/', '', $this->url->full()) == $page;
 }
All Usage Examples Of Illuminate\Routing\UrlGenerator::full