protected function getRouteConfig()
    {
        $allroutes = $this->app['config']->get('routing');

        // First, try to find a custom route that's applicable
        foreach ($allroutes as $binding => $config) {
            if ($this->isApplicableRoute($config)) {
                return [$binding, $config];
            }
        }

        // Just return the 'generic' contentlink route.
        if (!empty($allroutes['contentlink'])) {
            return ['contentlink', $allroutes['contentlink']];
        }

        return null;
    }
protected function getRouteConfig()
    {
        $allroutes = $this->app['config']->get('routing');

        // First, try to find a custom route that's applicable
        foreach ($allroutes as $binding => $config) {
            if ($this->isApplicableRoute($config)) {
                return [$binding, $config];
            }
        }

        // Just return the 'generic' contentlink route.
        if (!empty($allroutes['contentlink'])) {
            return ['contentlink', $allroutes['contentlink']];
        }

        return null;
    }
protected function getRouteConfig ( ) { $ allroutes = $ this -> app [ 'config' ] -> get ( 'routing' ) ; // First, try to find a custom route that's applicable foreach ( $ allroutes as $ binding => $ config ) { if ( $ this -> isApplicableRoute ( $ config ) ) { return [ $ binding , $ config ] ; } } // Just return the 'generic' contentlink route. if ( ! empty ( $ allroutes [ 'contentlink' ] ) ) { return [ 'contentlink' , $ allroutes [ 'contentlink' ] ] ; } return null ; }
Retrieves the first route applicable to the content as a two-element array consisting of the binding and the
route array. Returns `null` if there is no applicable route.

@return array|null
Retrieves the first route applicable to the content as a two - element array consisting of the binding and the route array . Returns null if there is no applicable route .