src/Illuminate/Routing/ControllerDispatcher.php
protected function filterFailsOn($filter, $request, $method)
	{
		$on = array_get($filter, 'options.on');

		if (is_null($on)) return false;

		// If the "on" is a string, we will explode it on the pipe so you can set any
		// amount of methods on the filter constraints and it will still work like
		// you specified an array. Then we will check if the method is in array.
		if (is_string($on)) $on = explode('|', $on);

		return ! in_array(strtolower($request->getMethod()), $on);
	}
protected function filterFailsOn($filter, $request, $method)
	{
		$on = array_get($filter, 'options.on');

		if (is_null($on)) return false;

		// If the "on" is a string, we will explode it on the pipe so you can set any
		// amount of methods on the filter constraints and it will still work like
		// you specified an array. Then we will check if the method is in array.
		if (is_string($on)) $on = explode('|', $on);

		return ! in_array(strtolower($request->getMethod()), $on);
	}
protected function filterFailsOn ( $ filter , $ request , $ method ) { $ on = array_get ( $ filter , 'options.on' ) ; if ( is_null ( $ on ) ) return false ; // If the "on" is a string, we will explode it on the pipe so you can set any // amount of methods on the filter constraints and it will still work like // you specified an array. Then we will check if the method is in array. if ( is_string ( $ on ) ) $ on = explode ( '|' , $ on ) ; return ! in_array ( strtolower ( $ request -> getMethod ( ) ) , $ on ) ; }
Determine if the filter fails the "on" constraint.

@param  array  $filter
@param  \Illuminate\Http\Request  $request
@param  string  $method
@return bool
Determine if the filter fails the on constraint .