diff options
author | Mateja <mail@matejamaric.com> | 2020-11-16 23:41:42 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-16 23:41:42 +0100 |
commit | 77c9af98b91211d59283cc0cb1ae9b5fc0e9d20e (patch) | |
tree | 34a566f1b7d2b56534f007df593c0f1505175f48 /app/Http/Controllers/ReservationsController.php | |
parent | 306c83a6d6f702ed92ef0a4ffaf7e8afdbaa409f (diff) | |
download | yota-laravel-77c9af98b91211d59283cc0cb1ae9b5fc0e9d20e.tar.gz yota-laravel-77c9af98b91211d59283cc0cb1ae9b5fc0e9d20e.zip |
Nicer error message.
Diffstat (limited to 'app/Http/Controllers/ReservationsController.php')
-rw-r--r-- | app/Http/Controllers/ReservationsController.php | 2 |
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.'); } }); |