public function dispatcher($request) {
		$method_name = $request->method();
		
		if (in_array($method_name, $this->httpMethodNames)) {
			
			return $this->callAction($method_name, $this->getRequestParameters($request));
		}
		else {
			
			$this->httpMethodNotAllowed($method_name);
		}
	}
public function dispatcher($request) {
		$method_name = $request->method();
		
		if (in_array($method_name, $this->httpMethodNames)) {
			
			return $this->callAction($method_name, $this->getRequestParameters($request));
		}
		else {
			
			$this->httpMethodNotAllowed($method_name);
		}
	}
public function dispatcher ( $ request ) { $ method_name = $ request -> method ( ) ; if ( in_array ( $ method_name , $ this -> httpMethodNames ) ) { return $ this -> callAction ( $ method_name , $ this -> getRequestParameters ( $ request ) ) ; } else { $ this -> httpMethodNotAllowed ( $ method_name ) ; } }
Try to dispatch to the right method; if a method doesn't exist,
defer o the error handler. Also defer to the error handler if the
request method isn't on the approved list.

@param \Illuminate\Http\Request $request

@return mixed
@internal param array $parameters
Try to dispatch to the right method ; if a method doesn t exist defer o the error handler . Also defer to the error handler if the request method isn t on the approved list .