From 7787aa49e900f291d5a6a5883bedbda3a8e71a74 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 22 Jun 2020 07:23:32 +1000 Subject: [PATCH] assigned_user_id added to fillable models --- app/Http/Requests/Payment/UpdatePaymentRequest.php | 2 +- app/Models/Client.php | 1 + app/Models/Credit.php | 1 + app/Models/Quote.php | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Requests/Payment/UpdatePaymentRequest.php b/app/Http/Requests/Payment/UpdatePaymentRequest.php index 9ad49edfb7..7abe8aeebd 100644 --- a/app/Http/Requests/Payment/UpdatePaymentRequest.php +++ b/app/Http/Requests/Payment/UpdatePaymentRequest.php @@ -35,7 +35,7 @@ class UpdatePaymentRequest extends Request public function rules() - {//min:1 removed + {//min:1 removed, 'required' return [ 'invoices' => ['array',new PaymentAppliedValidAmount,new ValidCreditsPresentRule], 'invoices.*.invoice_id' => 'distinct', diff --git a/app/Models/Client.php b/app/Models/Client.php index d186023b0e..79457ea7d8 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -64,6 +64,7 @@ class Client extends BaseModel implements HasLocalePreference ]; protected $fillable = [ + 'assigned_user_id', 'currency_id', 'name', 'website', diff --git a/app/Models/Credit.php b/app/Models/Credit.php index abb776c12e..c82292a24b 100644 --- a/app/Models/Credit.php +++ b/app/Models/Credit.php @@ -38,6 +38,7 @@ class Credit extends BaseModel protected $presenter = 'App\Models\Presenters\CreditPresenter'; protected $fillable = [ + 'assigned_user_id', 'number', 'discount', 'po_number', diff --git a/app/Models/Quote.php b/app/Models/Quote.php index 362829eefe..debd2e8058 100644 --- a/app/Models/Quote.php +++ b/app/Models/Quote.php @@ -42,6 +42,7 @@ class Quote extends BaseModel protected $presenter = 'App\Models\Presenters\QuotePresenter'; protected $fillable = [ + 'assigned_user_id', 'number', 'discount', 'po_number',