URL::setRootControllerNamespace PHP Метод

setRootControllerNamespace() публичный статический Метод

Set the root controller namespace.
public static setRootControllerNamespace ( string $rootNamespace )
$rootNamespace string
        public static function setRootControllerNamespace($rootNamespace)
        {
            return \Illuminate\Routing\UrlGenerator::setRootControllerNamespace($rootNamespace);
        }

Usage Example

Пример #1
0
 public function __construct($structure, $rows, $searchTerm, $pagination)
 {
     // @todo: find a way to get rid of this dummy hack fix
     $laravel = app();
     if (0 === strpos($laravel::VERSION, '5.')) {
         \URL::setRootControllerNamespace('');
     }
     $this->structure = $structure;
     $this->rows = $rows;
     $currentPage = $pagination->currentPage();
     $paginationCount = $pagination->perPage();
     $totalPaginations = $pagination->lastPage();
     $pagination = ['total' => $totalPaginations, 'current' => $currentPage, 'count' => $paginationCount];
     $this->index_prefix($searchTerm);
     $this->index_content($rows, $pagination);
     $this->index_postfix($pagination, $searchTerm);
     return $this->html;
 }
All Usage Examples Of URL::setRootControllerNamespace