LaravelRoutingFilter

Summary

No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
File
routingilter.php
Package
Default
Class hierarchy
LaravelRoutingFilter

Tags

None found

Properties

$filters

$filters : array

The route filters for the application.

Type

array

Tags

None found

$patterns

$patterns : array

The route filters that are based on a pattern.

Type

array

Tags

None found

$aliases

$aliases : array

All of the registered filter aliases.

Type

array

Tags

None found

Methods

register()

register(string  $name, mixed  $callback) : void

Register a filter for the application.

// Register a closure as a filter Filter::register('before', function() {});

// Register a class callback as a filter
Filter::register('before', array('Class', 'method'));

Parameters

string $name
mixed $callback

static

Tags

None found

alias()

alias(string  $filter, string  $alias) : void

Alias a filter so it can be used by another name.

This is convenient for shortening filters that are registered by bundles.

Parameters

string $filter
string $alias

static

Tags

None found

parse()

parse(string|array  $filters) : array

Parse a filter definition into an array of filters.

Parameters

string|array $filters

Returns

array

static

Tags

None found

run()

run(array  $collections, array  $pass = array(), boolean  $override = false) : mixed

Call a filter or set of filters.

Parameters

array $collections
array $pass
boolean $override

Returns

mixed

static

Tags

None found