public static  function getDefaultPostTypeRoutes($postType)
    {
        $baseRouteName = str_replace('_', '.', $postType->slug);

        return [
          'defaultRoute' => $baseRouteName.'.index',
          'list' => [
            $baseRouteName.'.index' => $postType->name.' Index'
          ]
        ];
    }
public static  function getDefaultPostTypeRoutes($postType)
    {
        $baseRouteName = str_replace('_', '.', $postType->slug);

        return [
          'defaultRoute' => $baseRouteName.'.index',
          'list' => [
            $baseRouteName.'.index' => $postType->name.' Index'
          ]
        ];
    }
public static function getDefaultPostTypeRoutes ( $ postType ) { $ baseRouteName = str_replace ( '_' , '.' , $ postType -> slug ) ; return [ 'defaultRoute' => $ baseRouteName . '.index' , 'list' => [ $ baseRouteName . '.index' => $ postType -> name . ' Index' ] ] ; }
Get default routes for a post type.

@param  object $postType
@return array
Get default routes for a post type .