Fixes for incorrect name spacing of validation rules

This commit is contained in:
David Bomba 2020-08-24 08:20:57 +10:00
parent 0b34fd0738
commit 0d9df1f290
4 changed files with 4 additions and 3 deletions

View File

@ -146,8 +146,8 @@ class MigrationController extends BaseController
public function purgeCompanySaveSettings(Request $request, Company $company) public function purgeCompanySaveSettings(Request $request, Company $company)
{ {
$company->clients()->delete(); $company->clients()->forceDelete();
$company->products()->delete(); $company->products()->forceDelete();
$company->save(); $company->save();

View File

@ -27,7 +27,6 @@ class CompanyGatewayTransformer extends EntityTransformer
* @var array * @var array
*/ */
protected $defaultIncludes = [ protected $defaultIncludes = [
'gateway'
]; ];
/** /**
@ -63,6 +62,8 @@ class CompanyGatewayTransformer extends EntityTransformer
'custom_value2' => $company_gateway->custom_value2 ?: '', 'custom_value2' => $company_gateway->custom_value2 ?: '',
'custom_value3' => $company_gateway->custom_value3 ?: '', 'custom_value3' => $company_gateway->custom_value3 ?: '',
'custom_value4' => $company_gateway->custom_value4 ?: '', 'custom_value4' => $company_gateway->custom_value4 ?: '',
'label' => (string)$company_gateway->label ?: '',
'token_billing' => (string)$company_gateway->token_billing,
]; ];
} }