How to get the Values in form without submitting it?
I have this form in which I need data of $availableVehicles according to the eventDate. I want to pass this value of eventDate to controller. So that I ll get the values of $availableVehicles in my form. Please suggest me right approach to get data. I don't need query. I have query I just want to pass the variable eventDate in that. I am getting the values form values from @create and form will be submitted at @store. I want to send the value of eventDate at create and after getting data from query @create in form I ll submit that data to @store.
{!!Form::open(['action' => 'BookingsController@store', 'method' => 'POST'])!!}
@csrf
<input type="date" name="eventDate" id="eventDate" value="">
<select name="vehicleName" id="vehicleName">
<option disabled selected>Choose Vehicle...</option>
<?php foreach ($availableVehicles as $key => $vehicle): ?>
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
<?php endforeach; ?>
</select>
{!!Form::close()!!}
php ajax laravel
add a comment |
I have this form in which I need data of $availableVehicles according to the eventDate. I want to pass this value of eventDate to controller. So that I ll get the values of $availableVehicles in my form. Please suggest me right approach to get data. I don't need query. I have query I just want to pass the variable eventDate in that. I am getting the values form values from @create and form will be submitted at @store. I want to send the value of eventDate at create and after getting data from query @create in form I ll submit that data to @store.
{!!Form::open(['action' => 'BookingsController@store', 'method' => 'POST'])!!}
@csrf
<input type="date" name="eventDate" id="eventDate" value="">
<select name="vehicleName" id="vehicleName">
<option disabled selected>Choose Vehicle...</option>
<?php foreach ($availableVehicles as $key => $vehicle): ?>
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
<?php endforeach; ?>
</select>
{!!Form::close()!!}
php ajax laravel
Read the documentation on retrieving input
– kerbholz
Nov 23 '18 at 7:42
@Ali Anwar: Please show your code and may be you need eventDate value?
– user10186369
Nov 23 '18 at 7:45
In yourBookingsController
create a methodpublic function store(Request $req) {}
then inside that method the code$req-> eventDate
should contain the value from the form.
– David Angulo
Nov 23 '18 at 7:55
add a comment |
I have this form in which I need data of $availableVehicles according to the eventDate. I want to pass this value of eventDate to controller. So that I ll get the values of $availableVehicles in my form. Please suggest me right approach to get data. I don't need query. I have query I just want to pass the variable eventDate in that. I am getting the values form values from @create and form will be submitted at @store. I want to send the value of eventDate at create and after getting data from query @create in form I ll submit that data to @store.
{!!Form::open(['action' => 'BookingsController@store', 'method' => 'POST'])!!}
@csrf
<input type="date" name="eventDate" id="eventDate" value="">
<select name="vehicleName" id="vehicleName">
<option disabled selected>Choose Vehicle...</option>
<?php foreach ($availableVehicles as $key => $vehicle): ?>
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
<?php endforeach; ?>
</select>
{!!Form::close()!!}
php ajax laravel
I have this form in which I need data of $availableVehicles according to the eventDate. I want to pass this value of eventDate to controller. So that I ll get the values of $availableVehicles in my form. Please suggest me right approach to get data. I don't need query. I have query I just want to pass the variable eventDate in that. I am getting the values form values from @create and form will be submitted at @store. I want to send the value of eventDate at create and after getting data from query @create in form I ll submit that data to @store.
{!!Form::open(['action' => 'BookingsController@store', 'method' => 'POST'])!!}
@csrf
<input type="date" name="eventDate" id="eventDate" value="">
<select name="vehicleName" id="vehicleName">
<option disabled selected>Choose Vehicle...</option>
<?php foreach ($availableVehicles as $key => $vehicle): ?>
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
<?php endforeach; ?>
</select>
{!!Form::close()!!}
{!!Form::open(['action' => 'BookingsController@store', 'method' => 'POST'])!!}
@csrf
<input type="date" name="eventDate" id="eventDate" value="">
<select name="vehicleName" id="vehicleName">
<option disabled selected>Choose Vehicle...</option>
<?php foreach ($availableVehicles as $key => $vehicle): ?>
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
<?php endforeach; ?>
</select>
{!!Form::close()!!}
{!!Form::open(['action' => 'BookingsController@store', 'method' => 'POST'])!!}
@csrf
<input type="date" name="eventDate" id="eventDate" value="">
<select name="vehicleName" id="vehicleName">
<option disabled selected>Choose Vehicle...</option>
<?php foreach ($availableVehicles as $key => $vehicle): ?>
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
<?php endforeach; ?>
</select>
{!!Form::close()!!}
php ajax laravel
php ajax laravel
edited Nov 23 '18 at 9:55
Ali Anwar
asked Nov 23 '18 at 7:36
Ali AnwarAli Anwar
195
195
Read the documentation on retrieving input
– kerbholz
Nov 23 '18 at 7:42
@Ali Anwar: Please show your code and may be you need eventDate value?
– user10186369
Nov 23 '18 at 7:45
In yourBookingsController
create a methodpublic function store(Request $req) {}
then inside that method the code$req-> eventDate
should contain the value from the form.
– David Angulo
Nov 23 '18 at 7:55
add a comment |
Read the documentation on retrieving input
– kerbholz
Nov 23 '18 at 7:42
@Ali Anwar: Please show your code and may be you need eventDate value?
– user10186369
Nov 23 '18 at 7:45
In yourBookingsController
create a methodpublic function store(Request $req) {}
then inside that method the code$req-> eventDate
should contain the value from the form.
– David Angulo
Nov 23 '18 at 7:55
Read the documentation on retrieving input
– kerbholz
Nov 23 '18 at 7:42
Read the documentation on retrieving input
– kerbholz
Nov 23 '18 at 7:42
@Ali Anwar: Please show your code and may be you need eventDate value?
– user10186369
Nov 23 '18 at 7:45
@Ali Anwar: Please show your code and may be you need eventDate value?
– user10186369
Nov 23 '18 at 7:45
In your
BookingsController
create a method public function store(Request $req) {}
then inside that method the code $req-> eventDate
should contain the value from the form.– David Angulo
Nov 23 '18 at 7:55
In your
BookingsController
create a method public function store(Request $req) {}
then inside that method the code $req-> eventDate
should contain the value from the form.– David Angulo
Nov 23 '18 at 7:55
add a comment |
2 Answers
2
active
oldest
votes
In your bookingController create the following method:
public function store(Request $request){
$event_date = $request->input('eventDate');
}
Then you can use the $event_date variable to do whatever you want. For more information see the documentation
I have created controller. Problem is how to pass eventDate in controller, We cannot submit the form @store until we get the value according to the eventDate.
– Ali Anwar
Nov 23 '18 at 9:46
add a comment |
In controller you can get values like @Nabil has suggested to you, but I have not seen id in options of select tag, I mean this
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
It should be like this to get it's value
<option value="{{$vehicle->id}}">{{$vehicle->name}} </option>
And Further more you can also do this to get date related values from table in your database
public function store(Request $request)
{
$vehicles = new vehicle; //vehicle is a model name
$this->validate($request,[
'vehiclename'=>'required',
'eventDate'=>'required'
]);
$vehicles->vehiclename = $request->vehicleName;
$vehicles->eventdate= $request->eventDate;
$vehicles->save();
return redirect("/");
}
in where()
condition eventdate should be same as it is in database
In your create method you can do this to get all values from database and assign to your home view page
public function create()
{
$vehicles = DB::table('DatabaseTableName')->all();
OR
$vehicles = modelname::all();
return view("home",compact('vehicles'));
}
And then in home page do this {{$vehicles->name}}
etc
modelname
means you have to create model for you database table if you don't how to create model then use first option with tablename
Brother I ve created my query in the Controller. I ve to get values from public function create() and Submit at @store. How I can I send/pass the value of eventDate in create to get the values availableVehicles accordingly. I cannot submit form at that level. Form will be submitted store() at later stage.
– Ali Anwar
Nov 23 '18 at 9:50
Bro show me your create function so that i can guide you further
– Akhtar Munir
Nov 23 '18 at 11:55
if you are using resource routes and you have many functions like create index etc in a controller and you want to pass values to your page, let say home page then see the updated answer.
– Akhtar Munir
Nov 23 '18 at 12:00
Nothing to do with controllers they are fine. Question is how the value in the form that is named as eventDate can b sent without submitting the form. I know we can make get request but here it is not possible because the form will be submitted somewhere else. You have nothing to do with storing of form or submit. I have a question I dont want to submit the form. And I want to change the dropdowns that are linked to database with onchange or etc function.
– Ali Anwar
Nov 23 '18 at 22:01
Then you have to send the id in a route and then fetch it's related eventDate from database, once you get you can submit the form later, i think u mean this
– Akhtar Munir
Nov 24 '18 at 4:38
|
show 1 more comment
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442436%2fhow-to-get-the-values-in-form-without-submitting-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In your bookingController create the following method:
public function store(Request $request){
$event_date = $request->input('eventDate');
}
Then you can use the $event_date variable to do whatever you want. For more information see the documentation
I have created controller. Problem is how to pass eventDate in controller, We cannot submit the form @store until we get the value according to the eventDate.
– Ali Anwar
Nov 23 '18 at 9:46
add a comment |
In your bookingController create the following method:
public function store(Request $request){
$event_date = $request->input('eventDate');
}
Then you can use the $event_date variable to do whatever you want. For more information see the documentation
I have created controller. Problem is how to pass eventDate in controller, We cannot submit the form @store until we get the value according to the eventDate.
– Ali Anwar
Nov 23 '18 at 9:46
add a comment |
In your bookingController create the following method:
public function store(Request $request){
$event_date = $request->input('eventDate');
}
Then you can use the $event_date variable to do whatever you want. For more information see the documentation
In your bookingController create the following method:
public function store(Request $request){
$event_date = $request->input('eventDate');
}
Then you can use the $event_date variable to do whatever you want. For more information see the documentation
answered Nov 23 '18 at 8:11
Nabil FarhanNabil Farhan
714320
714320
I have created controller. Problem is how to pass eventDate in controller, We cannot submit the form @store until we get the value according to the eventDate.
– Ali Anwar
Nov 23 '18 at 9:46
add a comment |
I have created controller. Problem is how to pass eventDate in controller, We cannot submit the form @store until we get the value according to the eventDate.
– Ali Anwar
Nov 23 '18 at 9:46
I have created controller. Problem is how to pass eventDate in controller, We cannot submit the form @store until we get the value according to the eventDate.
– Ali Anwar
Nov 23 '18 at 9:46
I have created controller. Problem is how to pass eventDate in controller, We cannot submit the form @store until we get the value according to the eventDate.
– Ali Anwar
Nov 23 '18 at 9:46
add a comment |
In controller you can get values like @Nabil has suggested to you, but I have not seen id in options of select tag, I mean this
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
It should be like this to get it's value
<option value="{{$vehicle->id}}">{{$vehicle->name}} </option>
And Further more you can also do this to get date related values from table in your database
public function store(Request $request)
{
$vehicles = new vehicle; //vehicle is a model name
$this->validate($request,[
'vehiclename'=>'required',
'eventDate'=>'required'
]);
$vehicles->vehiclename = $request->vehicleName;
$vehicles->eventdate= $request->eventDate;
$vehicles->save();
return redirect("/");
}
in where()
condition eventdate should be same as it is in database
In your create method you can do this to get all values from database and assign to your home view page
public function create()
{
$vehicles = DB::table('DatabaseTableName')->all();
OR
$vehicles = modelname::all();
return view("home",compact('vehicles'));
}
And then in home page do this {{$vehicles->name}}
etc
modelname
means you have to create model for you database table if you don't how to create model then use first option with tablename
Brother I ve created my query in the Controller. I ve to get values from public function create() and Submit at @store. How I can I send/pass the value of eventDate in create to get the values availableVehicles accordingly. I cannot submit form at that level. Form will be submitted store() at later stage.
– Ali Anwar
Nov 23 '18 at 9:50
Bro show me your create function so that i can guide you further
– Akhtar Munir
Nov 23 '18 at 11:55
if you are using resource routes and you have many functions like create index etc in a controller and you want to pass values to your page, let say home page then see the updated answer.
– Akhtar Munir
Nov 23 '18 at 12:00
Nothing to do with controllers they are fine. Question is how the value in the form that is named as eventDate can b sent without submitting the form. I know we can make get request but here it is not possible because the form will be submitted somewhere else. You have nothing to do with storing of form or submit. I have a question I dont want to submit the form. And I want to change the dropdowns that are linked to database with onchange or etc function.
– Ali Anwar
Nov 23 '18 at 22:01
Then you have to send the id in a route and then fetch it's related eventDate from database, once you get you can submit the form later, i think u mean this
– Akhtar Munir
Nov 24 '18 at 4:38
|
show 1 more comment
In controller you can get values like @Nabil has suggested to you, but I have not seen id in options of select tag, I mean this
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
It should be like this to get it's value
<option value="{{$vehicle->id}}">{{$vehicle->name}} </option>
And Further more you can also do this to get date related values from table in your database
public function store(Request $request)
{
$vehicles = new vehicle; //vehicle is a model name
$this->validate($request,[
'vehiclename'=>'required',
'eventDate'=>'required'
]);
$vehicles->vehiclename = $request->vehicleName;
$vehicles->eventdate= $request->eventDate;
$vehicles->save();
return redirect("/");
}
in where()
condition eventdate should be same as it is in database
In your create method you can do this to get all values from database and assign to your home view page
public function create()
{
$vehicles = DB::table('DatabaseTableName')->all();
OR
$vehicles = modelname::all();
return view("home",compact('vehicles'));
}
And then in home page do this {{$vehicles->name}}
etc
modelname
means you have to create model for you database table if you don't how to create model then use first option with tablename
Brother I ve created my query in the Controller. I ve to get values from public function create() and Submit at @store. How I can I send/pass the value of eventDate in create to get the values availableVehicles accordingly. I cannot submit form at that level. Form will be submitted store() at later stage.
– Ali Anwar
Nov 23 '18 at 9:50
Bro show me your create function so that i can guide you further
– Akhtar Munir
Nov 23 '18 at 11:55
if you are using resource routes and you have many functions like create index etc in a controller and you want to pass values to your page, let say home page then see the updated answer.
– Akhtar Munir
Nov 23 '18 at 12:00
Nothing to do with controllers they are fine. Question is how the value in the form that is named as eventDate can b sent without submitting the form. I know we can make get request but here it is not possible because the form will be submitted somewhere else. You have nothing to do with storing of form or submit. I have a question I dont want to submit the form. And I want to change the dropdowns that are linked to database with onchange or etc function.
– Ali Anwar
Nov 23 '18 at 22:01
Then you have to send the id in a route and then fetch it's related eventDate from database, once you get you can submit the form later, i think u mean this
– Akhtar Munir
Nov 24 '18 at 4:38
|
show 1 more comment
In controller you can get values like @Nabil has suggested to you, but I have not seen id in options of select tag, I mean this
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
It should be like this to get it's value
<option value="{{$vehicle->id}}">{{$vehicle->name}} </option>
And Further more you can also do this to get date related values from table in your database
public function store(Request $request)
{
$vehicles = new vehicle; //vehicle is a model name
$this->validate($request,[
'vehiclename'=>'required',
'eventDate'=>'required'
]);
$vehicles->vehiclename = $request->vehicleName;
$vehicles->eventdate= $request->eventDate;
$vehicles->save();
return redirect("/");
}
in where()
condition eventdate should be same as it is in database
In your create method you can do this to get all values from database and assign to your home view page
public function create()
{
$vehicles = DB::table('DatabaseTableName')->all();
OR
$vehicles = modelname::all();
return view("home",compact('vehicles'));
}
And then in home page do this {{$vehicles->name}}
etc
modelname
means you have to create model for you database table if you don't how to create model then use first option with tablename
In controller you can get values like @Nabil has suggested to you, but I have not seen id in options of select tag, I mean this
<option id="{{$vehicle->id}}">{{$vehicle->name}} </option>
It should be like this to get it's value
<option value="{{$vehicle->id}}">{{$vehicle->name}} </option>
And Further more you can also do this to get date related values from table in your database
public function store(Request $request)
{
$vehicles = new vehicle; //vehicle is a model name
$this->validate($request,[
'vehiclename'=>'required',
'eventDate'=>'required'
]);
$vehicles->vehiclename = $request->vehicleName;
$vehicles->eventdate= $request->eventDate;
$vehicles->save();
return redirect("/");
}
in where()
condition eventdate should be same as it is in database
In your create method you can do this to get all values from database and assign to your home view page
public function create()
{
$vehicles = DB::table('DatabaseTableName')->all();
OR
$vehicles = modelname::all();
return view("home",compact('vehicles'));
}
And then in home page do this {{$vehicles->name}}
etc
modelname
means you have to create model for you database table if you don't how to create model then use first option with tablename
edited Nov 23 '18 at 12:22
answered Nov 23 '18 at 8:32
Akhtar MunirAkhtar Munir
6612
6612
Brother I ve created my query in the Controller. I ve to get values from public function create() and Submit at @store. How I can I send/pass the value of eventDate in create to get the values availableVehicles accordingly. I cannot submit form at that level. Form will be submitted store() at later stage.
– Ali Anwar
Nov 23 '18 at 9:50
Bro show me your create function so that i can guide you further
– Akhtar Munir
Nov 23 '18 at 11:55
if you are using resource routes and you have many functions like create index etc in a controller and you want to pass values to your page, let say home page then see the updated answer.
– Akhtar Munir
Nov 23 '18 at 12:00
Nothing to do with controllers they are fine. Question is how the value in the form that is named as eventDate can b sent without submitting the form. I know we can make get request but here it is not possible because the form will be submitted somewhere else. You have nothing to do with storing of form or submit. I have a question I dont want to submit the form. And I want to change the dropdowns that are linked to database with onchange or etc function.
– Ali Anwar
Nov 23 '18 at 22:01
Then you have to send the id in a route and then fetch it's related eventDate from database, once you get you can submit the form later, i think u mean this
– Akhtar Munir
Nov 24 '18 at 4:38
|
show 1 more comment
Brother I ve created my query in the Controller. I ve to get values from public function create() and Submit at @store. How I can I send/pass the value of eventDate in create to get the values availableVehicles accordingly. I cannot submit form at that level. Form will be submitted store() at later stage.
– Ali Anwar
Nov 23 '18 at 9:50
Bro show me your create function so that i can guide you further
– Akhtar Munir
Nov 23 '18 at 11:55
if you are using resource routes and you have many functions like create index etc in a controller and you want to pass values to your page, let say home page then see the updated answer.
– Akhtar Munir
Nov 23 '18 at 12:00
Nothing to do with controllers they are fine. Question is how the value in the form that is named as eventDate can b sent without submitting the form. I know we can make get request but here it is not possible because the form will be submitted somewhere else. You have nothing to do with storing of form or submit. I have a question I dont want to submit the form. And I want to change the dropdowns that are linked to database with onchange or etc function.
– Ali Anwar
Nov 23 '18 at 22:01
Then you have to send the id in a route and then fetch it's related eventDate from database, once you get you can submit the form later, i think u mean this
– Akhtar Munir
Nov 24 '18 at 4:38
Brother I ve created my query in the Controller. I ve to get values from public function create() and Submit at @store. How I can I send/pass the value of eventDate in create to get the values availableVehicles accordingly. I cannot submit form at that level. Form will be submitted store() at later stage.
– Ali Anwar
Nov 23 '18 at 9:50
Brother I ve created my query in the Controller. I ve to get values from public function create() and Submit at @store. How I can I send/pass the value of eventDate in create to get the values availableVehicles accordingly. I cannot submit form at that level. Form will be submitted store() at later stage.
– Ali Anwar
Nov 23 '18 at 9:50
Bro show me your create function so that i can guide you further
– Akhtar Munir
Nov 23 '18 at 11:55
Bro show me your create function so that i can guide you further
– Akhtar Munir
Nov 23 '18 at 11:55
if you are using resource routes and you have many functions like create index etc in a controller and you want to pass values to your page, let say home page then see the updated answer.
– Akhtar Munir
Nov 23 '18 at 12:00
if you are using resource routes and you have many functions like create index etc in a controller and you want to pass values to your page, let say home page then see the updated answer.
– Akhtar Munir
Nov 23 '18 at 12:00
Nothing to do with controllers they are fine. Question is how the value in the form that is named as eventDate can b sent without submitting the form. I know we can make get request but here it is not possible because the form will be submitted somewhere else. You have nothing to do with storing of form or submit. I have a question I dont want to submit the form. And I want to change the dropdowns that are linked to database with onchange or etc function.
– Ali Anwar
Nov 23 '18 at 22:01
Nothing to do with controllers they are fine. Question is how the value in the form that is named as eventDate can b sent without submitting the form. I know we can make get request but here it is not possible because the form will be submitted somewhere else. You have nothing to do with storing of form or submit. I have a question I dont want to submit the form. And I want to change the dropdowns that are linked to database with onchange or etc function.
– Ali Anwar
Nov 23 '18 at 22:01
Then you have to send the id in a route and then fetch it's related eventDate from database, once you get you can submit the form later, i think u mean this
– Akhtar Munir
Nov 24 '18 at 4:38
Then you have to send the id in a route and then fetch it's related eventDate from database, once you get you can submit the form later, i think u mean this
– Akhtar Munir
Nov 24 '18 at 4:38
|
show 1 more comment
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442436%2fhow-to-get-the-values-in-form-without-submitting-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Read the documentation on retrieving input
– kerbholz
Nov 23 '18 at 7:42
@Ali Anwar: Please show your code and may be you need eventDate value?
– user10186369
Nov 23 '18 at 7:45
In your
BookingsController
create a methodpublic function store(Request $req) {}
then inside that method the code$req-> eventDate
should contain the value from the form.– David Angulo
Nov 23 '18 at 7:55