minor cleanup

This commit is contained in:
David Bomba 2025-02-12 06:43:24 +11:00
parent 93ec0a8e4a
commit c69af63ebf
2 changed files with 7 additions and 1 deletions

View File

@ -98,6 +98,10 @@ class SendEmailRequest extends Request
$input['entity'] = "App\Models\\".ucfirst(Str::camel($input['entity']));
}
if($input['entity'] == 'purchaseOrder'){
$input['entity'] = "App\Models\PurchaseOrder";
}
if (isset($input['cc_email'])) {
$input['cc_email'] = collect(explode(",", $input['cc_email']))->map(function ($email) {
return trim($email);

View File

@ -149,6 +149,8 @@ return [
'quickbooks' => [
'client_id' => env('QUICKBOOKS_CLIENT_ID', false),
'client_secret' => env('QUICKBOOKS_CLIENT_SECRET', false),
'redirect' => env('QUICKBOOKS_REDIRECT_URI'),
'env' => env('QUICKBOOKS_ENV'),
'debug' => env('APP_DEBUG',false)
],
'quickbooks_webhook' => [