['required'], 'description' => ['required'], 'contentTypes' => ['nullable'], 'contentVariants' => ['nullable'], 'videoTypes' => ['nullable'], 'roles' => ['required', 'array'], 'incentive_category_id' => ['required', 'exists:studio_plus_incentive_categories,id'], 'target_rule' => ['required'], 'amount_value_earned' => ['required'], 'asins' => ['nullable', 'array'] ]; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } public function messages() { return [ 'role_id.required' => 'The user role field is required.', 'asin_id.required' => 'The asin value field is required.', 'incentive_category_id.required' => 'The category field is required.' ]; } }