so i have this function where the user needs to enter the start date and end date of a certain event. So what i did was i added a date picker to my view and in my controller, the only thing i can do is allow end dates after the start date.but i should also be able to allow same start and end date say for example the user chose the start date today, i should be able to allow the end date to be today too. basically, end dates can be on and after the start date here is my validation codes in my controller.
$rules = array(
'eventName' => 'required',
'users' => 'required',
'evStart' => 'required',
'evEnd' => 'required|after:evStart',
);
and here is my codes for the view
<div class="input-field col s10 offset-s1" style="margin-top:40px;">
{{ Form::label('date', 'Event Start *') }}
{{ Form::input('date', 'evStart', Input::old('evStart'), ['class'=>'datepicker', 'placeholder' => 'Date']) }}
</div>
<div class="input-field col s10 offset-s1">
{{ Form::label('date', 'Event End *') }}
{{ Form::input('date', 'evEnd', Input::old('evEnd'), ['class'=>'datepicker', 'placeholder' => 'Date']) }}
</div>
any ideas on how i can improve my codes? thanks so much in advance!
datepickerclass to myForm::input- BourneShady