public function setMethods($methods) { if (is_string($methods)) { $methods = explode('|', $methods); } parent::setMethods($methods); }
/** * @group legacy */ public function testLegacyGetPattern() { $route = new Route(array('value' => '/Blog')); $this->assertEquals($route->getPattern(), '/Blog'); }
public function testLegacyGetPattern() { $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); $route = new Route(array('value' => '/Blog')); $this->assertEquals($route->getPattern(), '/Blog'); }
/** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return ['first_name' => 'required', 'last_name' => 'required', 'type' => 'required', 'email' => 'required|unique:users,email,' . $this->route->getParameter('users'), 'password' => 'required']; }