basket->campagne; throw_unless($campagne->camp_type->equals(CampaignTypes::panier()), \Exception::class, 'Campaign is not basket.'); throw_if($campagne->camp_published === 0, \Exception::class, 'Campaign is not published.'); throw_if($campagne->site->crm_token === null, \Exception::class, 'CRM Token is missing.'); throw_if($campagne->site->crm_password === null, \Exception::class, 'CRM Password is missing.'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return []; } }