check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'string|max:255|required', 'brand_id' => 'required|exists:brands,id' ]; } }