From 7fbcfa391b84e88f7549d340274491ce847a19aa Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 29 Mar 2018 14:12:25 -0500 Subject: [PATCH] block on/off times in FormRequest check --- CHANGELOG.md | 1 + app/Http/Requests/Acars/FileRequest.php | 2 ++ app/Http/Requests/Acars/PrefileRequest.php | 2 ++ app/Http/Requests/Acars/UpdateRequest.php | 2 ++ 4 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04d53acd..7244e646 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Rank restrictions for PIREPs are respected [#170](https://github.com/nabeelio/phpvms/issues/170) - API: Added the ability to get/update/delete user bids [#172](https://github.com/nabeelio/phpvms/issues/172) - API: Added `block_time` parameter for PIREP prefile/update/file calls +- API: Added `block_on_time` and `block_off_time` for PIREP prefile/update/file calls - Artisan: Added a `phpvms:csv-import [table] [file]` to import from CSV - Artisan: Added a `phpvms:yaml-export [tables]` to export tables to YAML files which can be re-imported using `phpvms:yaml-import` - Numerous bug fixes diff --git a/app/Http/Requests/Acars/FileRequest.php b/app/Http/Requests/Acars/FileRequest.php index 7ace80bc..96675db2 100644 --- a/app/Http/Requests/Acars/FileRequest.php +++ b/app/Http/Requests/Acars/FileRequest.php @@ -44,6 +44,8 @@ class FileRequest extends FormRequest 'source_name' => 'nullable|max:25', 'landing_rate' => 'nullable|numeric', 'flight_type' => 'nullable|integer', + 'block_off_time' => 'nullable|date', + 'block_on_time' => 'nullable|date', 'created_at' => 'nullable|date', # See if the fare objects are included and formatted properly diff --git a/app/Http/Requests/Acars/PrefileRequest.php b/app/Http/Requests/Acars/PrefileRequest.php index 8e31c71f..aded7443 100644 --- a/app/Http/Requests/Acars/PrefileRequest.php +++ b/app/Http/Requests/Acars/PrefileRequest.php @@ -38,6 +38,8 @@ class PrefileRequest extends FormRequest 'route' => 'nullable', 'notes' => 'nullable', 'flight_type' => 'nullable|integer', + 'block_off_time' => 'nullable|date', + 'block_on_time' => 'nullable|date', 'created_at' => 'nullable|date', # See if the fare objects are included and formatted properly diff --git a/app/Http/Requests/Acars/UpdateRequest.php b/app/Http/Requests/Acars/UpdateRequest.php index ca06da23..bb468d7e 100644 --- a/app/Http/Requests/Acars/UpdateRequest.php +++ b/app/Http/Requests/Acars/UpdateRequest.php @@ -43,6 +43,8 @@ class UpdateRequest extends FormRequest 'source_name' => 'nullable|max:25', 'landing_rate' => 'nullable|numeric', 'flight_type' => 'nullable|integer', + 'block_off_time' => 'nullable|date', + 'block_on_time' => 'nullable|date', 'created_at' => 'nullable|date', # See if the fare objects are included and formatted properly