PHP Class Fedeisas\LaravelJsRoutes\Generators\RoutesJavascriptGenerator

Datei anzeigen Open project: fedeisas/laravel-js-routes Class Usage Examples

Protected Properties

Property Type Description
$file Illuminate\Filesystem\Filesystem File system instance
$parsedRoutes array Parsed routes
$router Illuminate\Routing\Router Router instance
$routes array Clean routes

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $file, Router $router )
make ( string $path, string $name, array $options = [] ) : boolean Compile routes template and generate

Protected Methods

Method Description
getBeforeFilters ( Illuminate\Routing\Route $route ) : string Get before filters
getMethodPatterns ( string $uri, string $method ) : array Get the pattern filters for a given URI and method.
getParsedRoutes ( string $filter = null, string $prefix = null ) : array Get parsed routes
getPatternFilters ( Illuminate\Routing\Route $route ) : array Get all of the pattern filters matching the route.
getRouteInformation ( Illuminate\Routing\Route $route ) : array Get the route information for a given route.

Method Details

__construct() public method

public __construct ( Illuminate\Filesystem\Filesystem $file, Router $router )
$file Illuminate\Filesystem\Filesystem
$router Illuminate\Routing\Router

getBeforeFilters() protected method

Get before filters
protected getBeforeFilters ( Illuminate\Routing\Route $route ) : string
$route Illuminate\Routing\Route
return string

getMethodPatterns() protected method

Get the pattern filters for a given URI and method.
protected getMethodPatterns ( string $uri, string $method ) : array
$uri string
$method string
return array

getParsedRoutes() protected method

Get parsed routes
protected getParsedRoutes ( string $filter = null, string $prefix = null ) : array
$filter string
$prefix string
return array

getPatternFilters() protected method

Get all of the pattern filters matching the route.
protected getPatternFilters ( Illuminate\Routing\Route $route ) : array
$route Illuminate\Routing\Route
return array

getRouteInformation() protected method

Get the route information for a given route.
protected getRouteInformation ( Illuminate\Routing\Route $route ) : array
$route Illuminate\Routing\Route
return array

make() public method

Compile routes template and generate
public make ( string $path, string $name, array $options = [] ) : boolean
$path string
$name string
$options array
return boolean

Property Details

$file protected_oe property

File system instance
protected Filesystem,Illuminate\Filesystem $file
return Illuminate\Filesystem\Filesystem

$parsedRoutes protected_oe property

Parsed routes
protected array $parsedRoutes
return array

$router protected_oe property

Router instance
protected Router,Illuminate\Routing $router
return Illuminate\Routing\Router

$routes protected_oe property

Clean routes
protected array $routes
return array