Devise\Pages\RoutesGenerator::loadRoutes PHP Метод

loadRoutes() публичный Метод

Loads the routes
public loadRoutes ( ) : [type]
Результат [type]
    public function loadRoutes()
    {
        $this->assertRouteCachingValid();
        // laravel (cache) is handling the routes
        if ($this->App->routesAreCached()) {
            return;
        }
        // laravel has no cache and there is no
        // devise routes file, therefore we just
        // load the routes directly from the DB
        $routes = $this->findDvsPageRoutes();
        foreach ($routes as $route) {
            $verb = $route->http_verb;
            $uses = ['as' => $route->route_name, 'uses' => $route->uses];
            if ($route->middleware) {
                $uses['middleware'] = explode('|', $route->middleware);
            }
            $this->Route->{$verb}($route->slug, $uses);
        }
    }