aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-16 23:41:42 +0100
committerMateja <mail@matejamaric.com>2020-11-16 23:41:42 +0100
commit77c9af98b91211d59283cc0cb1ae9b5fc0e9d20e (patch)
tree34a566f1b7d2b56534f007df593c0f1505175f48
parent306c83a6d6f702ed92ef0a4ffaf7e8afdbaa409f (diff)
downloadyota-laravel-77c9af98b91211d59283cc0cb1ae9b5fc0e9d20e.tar.gz
yota-laravel-77c9af98b91211d59283cc0cb1ae9b5fc0e9d20e.zip
Nicer error message.
-rw-r--r--app/Http/Controllers/ReservationsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/Controllers/ReservationsController.php b/app/Http/Controllers/ReservationsController.php
index c105433..a11ea39 100644
--- a/app/Http/Controllers/ReservationsController.php
+++ b/app/Http/Controllers/ReservationsController.php
@@ -99,7 +99,7 @@ class ReservationsController extends Controller
$fromStamp = strtotime($request->sdate . ' ' . $request->stime);
$toStamp = strtotime($request->edate . ' ' . $request->etime);
if (!($fromStamp < $toStamp)) {
- $validator->errors()->add('time', 'FROM time and date needs to be before TO time and date.');
+ $validator->errors()->add('time', 'Start date and time needs to be before end date and time.');
}
});