Can anyone please suggest me a very easy way to place a datepicker in a form in laravel.
I have tried to use the form::month and form::year..but when it comes to the date...i will need to put a validation so that the user cannot choose a date like 31 Feb...and this is out of my capability right now.
I have also looked for bootstrap 3 datepicker..but its inclusion seems to be difficult ....any help is most welcome...
@Rachid
Oh...thank you very much ...it works...however i have one inconvenient....since i will be using the datepicker for entering the date of birth...the user will have to click many so that to get the right date of birth....do you have any suggestion which can remove this inconvenience....again thanks for your precious help....
This is actually what I did. I basically put the stuff RachidLaasri provided into header and footer of app.blade.php. Then in a test page (View), I used following code:
@extends('app')
@section('content')
{!! Form::open(array('url' => $type, 'class' => 'form')) !!}
{!! Form::text('date', '', array('id' => 'datepicker') !!}
{!! Form::close() !!}
This is an test page
@endsection