Add an HTTP method you will allow
public static allowMethod ( string $method ) : void | ||
$method | string | |
리턴 | void |
public function testCanSpecifyAdditionalMethodTypesToRespondTo() { Route::allowMethod(__FUNCTION__); $map = $this->app->map('/:controller', 'bogus-callback'); $map->via(__FUNCTION__); $this->assertTrue($map->respondsTo(__FUNCTION__)); }