diff --git a/app/Abstracts/Http/FormRequest.php b/app/Abstracts/Http/FormRequest.php index 2097492f5..1cd0b505b 100644 --- a/app/Abstracts/Http/FormRequest.php +++ b/app/Abstracts/Http/FormRequest.php @@ -32,4 +32,14 @@ abstract class FormRequest extends BaseFormRequest $offset ); } + + /** + * Determine if the user is authorized to make this request. + * + * @return bool + */ + public function authorize() + { + return true; + } } diff --git a/app/Console/Stubs/Modules/request.stub b/app/Console/Stubs/Modules/request.stub index 5cfbd1ae1..7809c284c 100644 --- a/app/Console/Stubs/Modules/request.stub +++ b/app/Console/Stubs/Modules/request.stub @@ -17,14 +17,4 @@ class $CLASS$ extends FormRequest // ]; } - - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } } diff --git a/app/Http/Requests/Auth/User.php b/app/Http/Requests/Auth/User.php index 9db010b5e..8919be585 100644 --- a/app/Http/Requests/Auth/User.php +++ b/app/Http/Requests/Auth/User.php @@ -6,7 +6,6 @@ use Illuminate\Foundation\Http\FormRequest; class User extends FormRequest { - /** * Determine if the user is authorized to make this request. * diff --git a/app/Http/Requests/Banking/Account.php b/app/Http/Requests/Banking/Account.php index a044ecb1f..85db47719 100644 --- a/app/Http/Requests/Banking/Account.php +++ b/app/Http/Requests/Banking/Account.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Account extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Banking/Reconciliation.php b/app/Http/Requests/Banking/Reconciliation.php index c76fb7cf1..d1a5332e5 100644 --- a/app/Http/Requests/Banking/Reconciliation.php +++ b/app/Http/Requests/Banking/Reconciliation.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Reconciliation extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Banking/ReconciliationCalculate.php b/app/Http/Requests/Banking/ReconciliationCalculate.php index a5fd35895..6b6d4dd57 100644 --- a/app/Http/Requests/Banking/ReconciliationCalculate.php +++ b/app/Http/Requests/Banking/ReconciliationCalculate.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class ReconciliationCalculate extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Banking/Transaction.php b/app/Http/Requests/Banking/Transaction.php index f7790f558..868980c0a 100644 --- a/app/Http/Requests/Banking/Transaction.php +++ b/app/Http/Requests/Banking/Transaction.php @@ -3,20 +3,10 @@ namespace App\Http\Requests\Banking; use App\Abstracts\Http\FormRequest; -use Date; +use App\Utilities\Date; class Transaction extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Banking/Transfer.php b/app/Http/Requests/Banking/Transfer.php index ddc9021da..81627790f 100644 --- a/app/Http/Requests/Banking/Transfer.php +++ b/app/Http/Requests/Banking/Transfer.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Transfer extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/BulkAction.php b/app/Http/Requests/Common/BulkAction.php index 4fe91b95a..92dad3423 100644 --- a/app/Http/Requests/Common/BulkAction.php +++ b/app/Http/Requests/Common/BulkAction.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class BulkAction extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Company.php b/app/Http/Requests/Common/Company.php index bebcc081e..f8bb15e61 100644 --- a/app/Http/Requests/Common/Company.php +++ b/app/Http/Requests/Common/Company.php @@ -6,16 +6,6 @@ use Illuminate\Foundation\Http\FormRequest; class Company extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Contact.php b/app/Http/Requests/Common/Contact.php index e5607b5c8..b7e826ca1 100644 --- a/app/Http/Requests/Common/Contact.php +++ b/app/Http/Requests/Common/Contact.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Contact extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Dashboard.php b/app/Http/Requests/Common/Dashboard.php index c6d2d8e89..3888ce6e0 100644 --- a/app/Http/Requests/Common/Dashboard.php +++ b/app/Http/Requests/Common/Dashboard.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Dashboard extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Import.php b/app/Http/Requests/Common/Import.php index 6756cb973..80f3adf9e 100644 --- a/app/Http/Requests/Common/Import.php +++ b/app/Http/Requests/Common/Import.php @@ -6,16 +6,6 @@ use Illuminate\Foundation\Http\FormRequest; class Import extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Item.php b/app/Http/Requests/Common/Item.php index 06af9bb17..f5eff15fe 100644 --- a/app/Http/Requests/Common/Item.php +++ b/app/Http/Requests/Common/Item.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Item extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/ItemTax.php b/app/Http/Requests/Common/ItemTax.php index f18133b36..d304bb51b 100644 --- a/app/Http/Requests/Common/ItemTax.php +++ b/app/Http/Requests/Common/ItemTax.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class ItemTax extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Notification.php b/app/Http/Requests/Common/Notification.php index ec8fe009f..9a7a226f4 100644 --- a/app/Http/Requests/Common/Notification.php +++ b/app/Http/Requests/Common/Notification.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Notification extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Report.php b/app/Http/Requests/Common/Report.php index d8f131fda..bc1b4813c 100644 --- a/app/Http/Requests/Common/Report.php +++ b/app/Http/Requests/Common/Report.php @@ -6,12 +6,11 @@ use App\Abstracts\Http\FormRequest; class Report extends FormRequest { - - public function authorize() - { - return true; - } - + /** + * Get the validation rules that apply to the request. + * + * @return array + */ public function rules() { return [ diff --git a/app/Http/Requests/Common/TotalItem.php b/app/Http/Requests/Common/TotalItem.php index 9ebc27b5e..5e83c131f 100644 --- a/app/Http/Requests/Common/TotalItem.php +++ b/app/Http/Requests/Common/TotalItem.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class TotalItem extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Common/Widget.php b/app/Http/Requests/Common/Widget.php index 79a8186d4..4b3fe37ca 100644 --- a/app/Http/Requests/Common/Widget.php +++ b/app/Http/Requests/Common/Widget.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Widget extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Document/Document.php b/app/Http/Requests/Document/Document.php index bcd29e3ca..89281ca41 100644 --- a/app/Http/Requests/Document/Document.php +++ b/app/Http/Requests/Document/Document.php @@ -9,16 +9,6 @@ use Illuminate\Support\Str; class Document extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Document/DocumentAddItem.php b/app/Http/Requests/Document/DocumentAddItem.php index 14af5573e..3bcaed2a5 100644 --- a/app/Http/Requests/Document/DocumentAddItem.php +++ b/app/Http/Requests/Document/DocumentAddItem.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class DocumentAddItem extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Document/DocumentHistory.php b/app/Http/Requests/Document/DocumentHistory.php index 47f234041..1d3d7dae6 100644 --- a/app/Http/Requests/Document/DocumentHistory.php +++ b/app/Http/Requests/Document/DocumentHistory.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class DocumentHistory extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Document/DocumentItem.php b/app/Http/Requests/Document/DocumentItem.php index 1016be187..c55141013 100644 --- a/app/Http/Requests/Document/DocumentItem.php +++ b/app/Http/Requests/Document/DocumentItem.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class DocumentItem extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Document/DocumentItemTax.php b/app/Http/Requests/Document/DocumentItemTax.php index fb263ef2e..438b54956 100644 --- a/app/Http/Requests/Document/DocumentItemTax.php +++ b/app/Http/Requests/Document/DocumentItemTax.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class DocumentItemTax extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Document/DocumentTotal.php b/app/Http/Requests/Document/DocumentTotal.php index 2e62af39a..0c5b105a4 100644 --- a/app/Http/Requests/Document/DocumentTotal.php +++ b/app/Http/Requests/Document/DocumentTotal.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class DocumentTotal extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Install/Database.php b/app/Http/Requests/Install/Database.php index bbb8270ba..e0394c862 100644 --- a/app/Http/Requests/Install/Database.php +++ b/app/Http/Requests/Install/Database.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Database extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Install/Setting.php b/app/Http/Requests/Install/Setting.php index 4719868b6..8230a7856 100644 --- a/app/Http/Requests/Install/Setting.php +++ b/app/Http/Requests/Install/Setting.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Setting extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Module/Module.php b/app/Http/Requests/Module/Module.php index c3d1cead2..5372ed4a3 100644 --- a/app/Http/Requests/Module/Module.php +++ b/app/Http/Requests/Module/Module.php @@ -21,16 +21,6 @@ class Module extends FormRequest ); } - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Portal/InvoiceConfirm.php b/app/Http/Requests/Portal/InvoiceConfirm.php index 5243fdb27..f8625fe54 100644 --- a/app/Http/Requests/Portal/InvoiceConfirm.php +++ b/app/Http/Requests/Portal/InvoiceConfirm.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class InvoiceConfirm extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Portal/InvoicePayment.php b/app/Http/Requests/Portal/InvoicePayment.php index c6b4bb09e..bcb123626 100644 --- a/app/Http/Requests/Portal/InvoicePayment.php +++ b/app/Http/Requests/Portal/InvoicePayment.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class InvoicePayment extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Portal/Profile.php b/app/Http/Requests/Portal/Profile.php index 4d7d375a0..41951dac1 100644 --- a/app/Http/Requests/Portal/Profile.php +++ b/app/Http/Requests/Portal/Profile.php @@ -6,16 +6,6 @@ use Illuminate\Foundation\Http\FormRequest; class Profile extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Setting/Category.php b/app/Http/Requests/Setting/Category.php index 7856d2e32..adcee5c47 100644 --- a/app/Http/Requests/Setting/Category.php +++ b/app/Http/Requests/Setting/Category.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Category extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Setting/Currency.php b/app/Http/Requests/Setting/Currency.php index 5e2d8fedd..c31b3966c 100644 --- a/app/Http/Requests/Setting/Currency.php +++ b/app/Http/Requests/Setting/Currency.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Currency extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Setting/Module.php b/app/Http/Requests/Setting/Module.php index ea2908005..f860592f9 100644 --- a/app/Http/Requests/Setting/Module.php +++ b/app/Http/Requests/Setting/Module.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Module extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Setting/Setting.php b/app/Http/Requests/Setting/Setting.php index 1a30ce246..2c7a6a20c 100644 --- a/app/Http/Requests/Setting/Setting.php +++ b/app/Http/Requests/Setting/Setting.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Setting extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Setting/Tax.php b/app/Http/Requests/Setting/Tax.php index 5cbefde6a..ab47c77c5 100644 --- a/app/Http/Requests/Setting/Tax.php +++ b/app/Http/Requests/Setting/Tax.php @@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest; class Tax extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. * diff --git a/app/Http/Requests/Wizard/Company.php b/app/Http/Requests/Wizard/Company.php index ce7853018..7694d4aa2 100644 --- a/app/Http/Requests/Wizard/Company.php +++ b/app/Http/Requests/Wizard/Company.php @@ -21,16 +21,6 @@ class Company extends FormRequest ); } - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return true; - } - /** * Get the validation rules that apply to the request. *