Inicjalizacja widoku
@param \Mmi\Mvc\Router $router
@return \Mmi\Mvc\View
972330
protected function _setupView(\Mmi\Mvc\Router $router)
    {
        //powołanie i konfiguracja widoku
        return (new \Mmi\Mvc\View)->setCache(FrontController::getInstance()->getLocalCache())
            //opcja kompilacji
            ->setAlwaysCompile(\App\Registry::$config->compile)
            //ustawienie cdn
            ->setCdn(\App\Registry::$config->cdn)
            //ustawienie requestu
            ->setRequest(FrontController::getInstance()->getRequest())
            //ustawianie baseUrl
            ->setBaseUrl(FrontController::getInstance()->getEnvironment()->baseUrl);
    }
965183
public function boot(Router $router)
    {

        // Include the Routes
        $this->add_routes();

        // Publish the JS & CSS, and Database migrations
        $this->add_publications();

        // Inform Laravel how to load migrations
        $this->add_migrations();

        // Add the views for the 'web' namespace
        $this->add_views();

        // Add the view composers
        $this->add_view_composers();

        // Include our translations
        $this->add_translations();

        // Add middleware
        $this->add_middleware($router);

        // Add event listeners
        $this->add_events();

        // Add Validators
        $this->add_custom_validators();

        // Configure the queue dashboard
        $this->configure_horizon();

        // Configure API
        $this->configure_api();
    }
597399
private function loadConfiguration(Router $router)
    {
        $configuration = new Configuration($this->translator);
        $configuration = $configuration->getConfiguration($router);

        foreach ($configuration['steps']['groups'] as &$currentGroup) {
            if (isset($currentGroup['title'])) {
                $currentGroup['title'] = $this->getTextFromSettings($currentGroup['title']);
            }
            if (isset($currentGroup['subtitle'])) {
                foreach ($currentGroup['subtitle'] as &$subtitle) {
                    $subtitle = $this->getTextFromSettings($subtitle);
                }
            }
            foreach ($currentGroup['steps'] as &$currentStep) {
                $currentStep['text'] = $this->getTextFromSettings($currentStep['text']);
            }
        }

        $this->configuration = $configuration;
    }
35865
public function mapWebRoutes(Router $router)
    {
        $permissionPrefix = $this->routeHelper->getPermissionPrefixForModelSlug(
            $this->getModelSlug()
        );

        $router->group(
            [
                'prefix'    => $this->getRoutePrefix(),
                'as'        => $this->getRouteNamePrefix(),
                'middleware' => [ cms_mw_permission("{$permissionPrefix}*") ],
            ],
            function (Router $router) use ($permissionPrefix) {

                $controller = $this->getModelWebController();

                $router->get('/', [
                    'as'   => 'index',
                    'uses' => $controller . '@index',
                ]);

                $router->get('create', [
                    'as'         => 'create',
                    'middleware' => [cms_mw_permission("{$permissionPrefix}create")],
                    'uses'       => $controller . '@create',
                ]);

                $router->post('/', [
                    'as'         => 'store',
                    'middleware' => [
                        cms_mw_permission("{$permissionPrefix}create"),
                        StoreActiveFormContext::class,
                    ],
                    'uses'       => $controller . '@store',
                ]);

                $router->post('filter', [
                    'as'   => 'filter',
                    'uses' => $controller . '@filter',
                ]);

                $router->get('export/{strategy}', [
                    'as'         => 'export',
                    'middleware' => [cms_mw_permission("{$permissionPrefix}export")],
                    'uses'       => $controller . '@export',
                ]);

                $router->get('{key}', [
                    'as'   => 'show',
                    'uses' => $controller . '@show',
                ]);

                $router->get('{key}/edit', [
                    'as'         => 'edit',
                    'middleware' => [cms_mw_permission("{$permissionPrefix}edit")],
                    'uses'       => $controller . '@edit',
                ]);

                $router->put('{key}/activate', [
                    'as'         => 'activate',
                    'middleware' => [cms_mw_permission("{$permissionPrefix}edit")],
                    'uses'       => $controller . '@activate',
                ]);

                $router->put('{key}/position', [
                    'as'         => 'position',
                    'middleware' => [cms_mw_permission("{$permissionPrefix}edit")],
                    'uses'       => $controller . '@position',
                ]);

                $router->get('{key}/deletable', [
                    'as'         => 'deletable',
                    'middleware' => [cms_mw_permission("{$permissionPrefix}delete")],
                    'uses'       => $controller . '@deletable',
                ]);

                $router->put('{key}', [
                    'as'         => 'update',
                    'middleware' => [
                        cms_mw_permission("{$permissionPrefix}edit"),
                        StoreActiveFormContext::class,
                    ],
                    'uses'       => $controller . '@update',
                ]);

                $router->delete('{key}', [
                    'as'         => 'destroy',
                    'middleware' => [cms_mw_permission("{$permissionPrefix}delete")],
                    'uses'       => $controller . '@destroy',
                ]);
            }
        );
    }
856676
protected function mapCategoryRoutes(Router $router)
    {
        try {
            /** @var \Yajra\CMS\Repositories\Category\Repository $repository */
            $repository = app('categories');
            $repository->getAllPublished()->each(function (Category $category) use ($router) {
                $middleware = ['web'];
                if ($category->requiresAuthentication()) {
                    $middleware[] = 'auth';
                }

                $router->get($category->present()->slug,
                    function () use ($category, $router) {
                        return $this->app->call(CategoryController::class . '@show', [
                            'category'   => $category,
                            'parameters' => $router->current()->parameters(),
                        ]);
                    })->middleware($middleware)->name($category->getRouteName());

                /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $breadcrumb */
                $breadcrumb = resolve(BreadcrumbsManager::class);
                $breadcrumb->register($category->getRouteName(),
                    function (BreadcrumbsGenerator $breadcrumbs) use ($category) {
                        if ($category->isChild() && $category->depth > 1) {
                            $parent = $category->ancestors()->where('depth', '<>', 0)->first();
                            $breadcrumbs->parent($parent->getRouteName());
                        } else {
                            $breadcrumbs->parent('home');
                        }
                        $breadcrumbs->push($category->title, route($category->getRouteName()));
                    }
                );
            });
        } catch (QueryException $e) {
            // \\_(",)_//
        }
    }
657009
public function map(Router $router)
    {
        $router->group($this->routeAttributes(), function(Router $router) {
            \Antares\Logger\Http\Routes\LoggerRoute::register($router);
        });
    }
703231
public function map(Router $router)
    {
        $router->group($this->routeAttributes(), function(Router $router) {
            LogViewerRoute::register($router);
        });
    }
912972
public function boot(Router $router)
    {
        $this->app->singleton('cms', function ($app) {
            return app()->make(\LaravelFlare\Cms\CmsManager::class);
        });

        $this->publishes([
            __DIR__.'/Database/Migrations' => base_path('database/migrations'),
        ]);
        
        // Views
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'flare');
        $this->publishes([
            __DIR__.'/../resources/views' => base_path('resources/views/vendor/flare'),
        ]);
        // Routes
       // if (!$this->app->routesAreCached()) {
            require __DIR__.'/Http/routes.php';
      //  }
      //  
    }
1045745
public function boot(Router $router)
  {
    $router->middleware('roles', \App\Http\Middleware\HasRole::class);
    $router->middleware('admin', \App\Http\Middleware\AdminMiddleware::class);
    if (! $this->app->routesAreCached()) {
      require __DIR__.'/Http/routes.php';
    }

    $configFiles = ['acl'];
    foreach ($configFiles as $config) {
      $this->mergeConfigFrom(__DIR__."/config/{$config}.php", 'acl');
    }

    $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'acl');
    $this->loadViewsFrom(__DIR__ . '/resources/views', 'acl');

    //Publish middleware
    $this->publishes([
      __DIR__ . '/Middleware/' => app_path('Http/Middleware'),
    ]);

    //Publish providers
    $this->publishes([
      __DIR__ . '/Providers/' => app_path('Providers'),
    ]);

    //Publish views
    $this->publishes([
      // __DIR__.'/resources/views' => resource_path('views/vendor/user-auth'),
      __DIR__.'/resources/views' => resource_path('views'),
    ], 'views');

    //Publish translations
    $this->publishes([
      __DIR__.'/resources/lang/' => resource_path('lang/'),
      // __DIR__.'/resources/lang/pagination.php' => resource_path('lang/pagination.php'),
      // __DIR__.'/resources/lang/password.php' => resource_path('lang/password.php'),
      // __DIR__.'/resources/lang/validation.php' => resource_path('lang/validation.php'),
    ], 'translations');

    // Publish a config file
    $this->publishes([
      __DIR__.'/config/acl.php' => config_path('acl.php'),
    ], 'config');

    //Publish migrations
    $this->publishes([
      __DIR__ . '/database/migrations' => database_path('migrations'),
      __DIR__ . '/database/seeds' => database_path('seeds'),
    ], 'migrations');

    $this->publishes([
      __DIR__.'/assets/bower_components/AdminLTE/' => public_path('/assets/bower_components/AdminLTE/'),
    ], 'public');

    $this->publishes([
      __DIR__ . '/Http/Controllers/Auth/'    => app_path('/Http/Controllers/Auth/'),
      __DIR__ . '/Http/Controllers/Admin/'    => app_path('/Http/Controllers/Admin/'),
    ], 'controllers');
    $this->publishes([
      __DIR__ . '/Models/Admin/' => app_path(),
    ], 'models');
  }
874825
public function renderCell(\Mmi\Orm\RecordRo $record)
    {

        $view = FrontController::getInstance()->getView();
        $html = '<div class="operation-container">';
        //pobieranie parametrów linku edycji
        $editParams = $this->getOption('editParams');
        //pobieranie parametrów linku usuwania
        $deleteParams = $this->getOption('deleteParams');
        //pobieranie parametrów linku usuwania
        $deleteTagParams = $this->getOption('deleteTagParams');
        //przyciski dodatkowe
        $customButtons = $this->getOption('customButtons');
        //przyciski dodatkowe
        if (!empty($customButtons)) {
            //iteracja po przyciskach
            foreach ($customButtons as $button) {
                //brak uprawnień w ACL
                if (!(new AclAllowed)->aclAllowed($params = $this->_parseParams($button['params'], $record))) {
                    continue;
                }
                //html przycisku
                $html .= '<a class="operation-button" href="' . $view->url($params) . rtrim('#' . $button['hashTarget'], '#') . '"><i class="fa fa-' . $button['iconName'] . ' icon-' . $button['iconName'] . '"></i></a>';
            }
        }
        //link edycyjny ze sprawdzeniem ACL
        if (!empty($editParams) && (new AclAllowed)->aclAllowed($params = $this->_parseParams($editParams, $record))) {
            $html .= '<a class="operation-button" href="' . $view->url($params) . rtrim('#' . $this->getOption('editHashTarget'), '#') . '"><i class="fa fa-2 fa-pencil "></i></a>';
        }
        //link kasujący ze sprawdzeniem ACL
        if (!empty($deleteParams) && (new AclAllowed)->aclAllowed($params = $this->_parseParams($deleteParams, $record))) {
            $html .= '<a class="operation-button confirm" href="' . $view->url($params) . rtrim('#' . $this->getOption('deleteHashTarget'), '#') . '" title="' . $view->_('gird.shared.operation.delete.label') . '" class="confirm"><i class="fa fa-2 fa-trash-o "></i></a>';
        }
        //link kasujący tag
        if (!empty($deleteTagParams)) {
            if ($record->getJoined('cms_tag_relation')->id) {
                $html .= '<a class="operation-button" href="' . $view->url($this->_parseParams($deleteTagParams, $record)) . '" title="Tag jest przypisany do zasobu. Jeżeli zostanie usunięty nie ma możliwości przywrócenia relacji. Czy na pewno usunąć" class="confirm red"><i class="fa fa-2 fa-trash-o "></i></a>';
            }
            if (!$record->getJoined('cms_tag_relation')->id) {
                $html .= '<a class="operation-button" href="' . $view->url($this->_parseParams($deleteTagParams, $record)) . '" title="Czy na pewno usunąć" class="confirm"><i class="fa fa-2 fa-trash-o "></i></a>';
            }
        }
        $html .= '</div>';
        return $html;
    }
80559
public function getMvcPreviewParamsAsRequest()
    {
        $mvcParams = [];
        //parsowanie ciągu
        parse_str($this->mvcPreviewParams, $mvcParams);
        return new \Mmi\Http\Request($mvcParams);
    }
380763
public function mapApiRoutes(Router $router)
    {
        $router->group(
            [
                'prefix' => $this->getRoutePrefix(),
                'as'     => $this->getRouteNamePrefix(),
            ],
            function (Router $router) {

                $controller = $this->getModelApiController();

                $router->post('references', [
                    'as'   => 'references',
                    'uses' => $controller . '@references',
                ]);
            }
        );
    }
811994
protected function _setupRouter()
    {
        //powołanie routera z konfiguracją
        return new \Mmi\Mvc\Router(\App\Registry::$config->router ? \App\Registry::$config->router : new \Mmi\Mvc\RouterConfig);
    }
545445
public function map(Router $router)
    {
        $router->group(['namespace' => $this->namespace], function (Router $router) {

            /*
             * Admin routes
             */
            $router->get('admin/attribute-groups', 'AttributeGroupsAdminController@index')->name('admin::index-attribute_groups');
            $router->get('admin/attribute-groups/create', 'AttributeGroupsAdminController@create')->name('admin::create-attribute_group');
            $router->get('admin/attribute-groups/{group}/edit', 'AttributeGroupsAdminController@edit')->name('admin::edit-attribute_group');
            $router->post('admin/attribute-groups', 'AttributeGroupsAdminController@store')->name('admin::store-attribute_group');
            $router->put('admin/attribute-groups/{group}', 'AttributeGroupsAdminController@update')->name('admin::update-attribute_group');

            $router->get('admin/attribute-groups/{group}/attributes', 'AdminController@index')->name('admin::index-attributes');
            $router->get('admin/attribute-groups/{group}/attributes/create', 'AdminController@create')->name('admin::create-attribute');
            $router->get('admin/attribute-groups/{group}/attributes/{attribute}/edit', 'AdminController@edit')->name('admin::edit-attribute');
            $router->post('admin/attribute-groups/{group}/attributes', 'AdminController@store')->name('admin::store-attribute');
            $router->put('admin/attribute-groups/{group}/attributes/{attribute}', 'AdminController@update')->name('admin::update-attribute');
            $router->post('admin/attributes/sort', 'AdminController@sort')->name('admin::sort-menulinks');

            /*
             * API routes
             */
            $router->get('api/attributes', 'ApiController@index')->name('api::index-attributes');
            $router->put('api/attributes/{attribute}', 'ApiController@update')->name('api::update-attribute');
            $router->delete('api/attributes/{attribute}', 'ApiController@destroy')->name('api::destroy-attribute');

            $router->get('api/attribute-groups', 'AttributeGroupsApiController@index')->name('api::index-attribute_groups');
            $router->put('api/attribute-groups/{attribute}', 'AttributeGroupsApiController@update')->name('api::update-attribute_group');
            $router->delete('api/attribute-groups/{attribute}', 'AttributeGroupsApiController@destroy')->name('api::destroy-attribute_group');
        });
    }
938671
protected function _render()
    {
        $renderer = new GridRenderer($this->_grid);
        //ustawianie odpowiedzi
        FrontController::getInstance()->getResponse()
            ->setTypeJson()
            ->setContent(json_encode(['body' => $renderer->renderHeader() . $renderer->renderBody(), 'paginator' => $renderer->renderFooter()]));
        exit;
    }
1153353
public function boot(Router $router)
	{
        $viewPath = __DIR__.'/../resources/views';
        $this->loadViewsFrom($viewPath, 'translation-manager');
        $this->publishes([
            $viewPath => base_path('resources/views/vendor/translation-manager'),
        ], 'views');

        $migrationPath = __DIR__.'/../database/migrations';
        $this->publishes([
            $migrationPath => base_path('database/migrations'),
        ], 'migrations');

        $config = $this->app['config']->get('translation-manager.route', []);
        $config['namespace'] = 'Barryvdh\TranslationManager';

        $router->group($config, function($router)
        {
            $router->get('view/{groupKey?}', 'Controller@getView')->where('groupKey', '.*');
            $router->get('/{groupKey?}', 'Controller@getIndex')->where('groupKey', '.*');
            $router->post('/add/{groupKey}', 'Controller@postAdd')->where('groupKey', '.*');
            $router->post('/edit/{groupKey}', 'Controller@postEdit')->where('groupKey', '.*');
            $router->post('/groups/add', 'Controller@postAddGroup');
            $router->post('/delete/{groupKey}/{translationKey}', 'Controller@postDelete')->where('groupKey', '.*');
            $router->post('/import', 'Controller@postImport');
            $router->post('/find', 'Controller@postFind');
            $router->post('/locales/add', 'Controller@postAddLocale');
            $router->post('/locales/remove', 'Controller@postRemoveLocale');
            $router->post('/publish/{groupKey}', 'Controller@postPublish')->where('groupKey', '.*');
            $router->post('/translate-missing', 'Controller@postTranslateMissing');
        });
	}
300411
public function generateRoutables(Router $router = null, $prefix = null)
    {
        $router ?: $router = new Router;

        $prefix ?: $prefix = $this->buildUriPrefix($this->reflection->getShortName());

        foreach ($this->getRoutableReflectionMethodList() as $reflection) {

            $this->addRouteFromMethod($router, $reflection->getName(), $prefix);
        }

        return $router;
    }