Does anyone know how to use foreach in ajax to create a dropdown on laravel?

|
Rajat Agrawal 2020-08-10 08:43:19
no it did
skys215 2020-08-10 08:44:48
no it didn’t
Rajat Agrawal 2020-08-10 08:45:42
brother I cheked my backend request was sent correctly
skys215 2020-08-10 08:59:07
How did you check that?
Rajat Agrawal 2020-08-10 09:20:24
skys215 2020-08-10 08:59:07
How did you check that?

i am accessing few external api

Rajat Agrawal 2020-08-10 09:20:51
skys215 2020-08-10 08:59:07
How did you check that?

in that i cheked my request data

shikhar3198 2020-08-10 10:40:44
Hello Any one develop Pagalu Payment Gateway in laravel ?
shikhar3198 2020-08-10 10:41:09
With API and Frontend Payment With Suceess Response !!
skys215 2020-08-10 11:00:05
Rajat Agrawal 2020-08-10 09:20:51
in that i cheked my request data

if it’s not dding, than it’s mostly because it was not requested

farhanahjam 2020-08-10 11:00:27
protected function validator(array $data)
{
return Validator::make($data, [

‘day’ => [‘required’],
‘month’ => [‘required’],
‘year’ => [‘required’],
}

farhanahjam 2020-08-10 11:00:39
how can I validate relevant birth date
farhanahjam 2020-08-10 11:01:15
the birth date is inputted like this currently..separately
farhanahjam 2020-08-10 11:01:24
protected function validator(array $data)
{
$passwordRegex = $this->getPasswordRegex();
$todayYear = date(‘Y’);
$todayMonth = date(‘m’);
$todayDate = date(‘d’);

return Validator::make($data, [
‘day’ => [‘required’, ‘date_format:d|after_or_equal:’.$todayDate],
‘month’ => [‘required’, ‘date_format:m|after_or_equal:’.$todayMonth],
‘year’ => [‘required’, ‘date_format:Y|after_or_equal:’.$todayYear],
]);
}

farhanahjam 2020-08-10 11:01:42
I tried something like this but its not working
farhanahjam 2020-08-10 11:01:52
please help
skys215 2020-08-10 11:17:02
keep the code simple to ask the question
skys215 2020-08-10 11:17:43
I don’t understand what you want to achieve
farhanahjam 2020-08-10 11:20:56
I want to validate birth date, to make sure user entered correct birth date. not register with wrong birth date like 12/12/2020.
skys215 2020-08-10 11:26:40
And you want the user select date, month and year separately, right?
Billa_Bongg 2020-08-10 11:27:13
farhanahjam 2020-08-10 11:20:56
I want to validate birth date, to make sure user entered correct birth date. not register with wrong birth date like 12/12/2020.

Have you thought of a date picker?

farhanahjam 2020-08-10 11:30:35
I taught of it…but this system is already like this..it the requirement
flyingdragons 2020-08-10 11:47:49
Hey thank you very much for sharing the article. Your website has really good collections of articles
farhanahjam 2020-08-10 11:54:43
skys215 2020-08-10 11:26:40
And you want the user select date, month and year separately, right?

yes

farhanahjam 2020-08-10 11:55:00
laravel_discuss-47527.jpg

farhanahjam 2020-08-10 11:55:11
this is the ui
Billa_Bongg 2020-08-10 12:02:43
farhanahjam 2020-08-10 11:55:00

For great user experience you can remove the three dropdowns and put one input field and use jquery and a datepicker to populate the input field

Billa_Bongg 2020-08-10 12:03:55
farhanahjam 2020-08-10 11:20:56
I want to validate birth date, to make sure user entered correct birth date. not register with wrong birth date like 12/12/2020.

Since according to your UI then u need to validate the individual dropdowns

Csteach16 2020-08-10 12:04:14
hacked by?? xServer404
http://techextra.online/
Csteach16 2020-08-10 12:04:35
My website hacked anyone can help me
Csteach16 2020-08-10 12:05:10
laravel_discuss-47533.jpg

Csteach16 2020-08-10 12:05:28
Any no how it is possible
BaskarG 2020-08-10 12:20:17
I have a question,

My laravel code is in GitHub and I wanted Automatic continuous deployment to VPS server…. Tried few YouTube videos but it’s not working as expected

skys215 2020-08-10 12:58:30
BaskarG 2020-08-10 12:20:17
I have a question,

My laravel code is in GitHub and I wanted Automatic continuous deployment to VPS server…. Tried few YouTube videos but it’s not working as expected

Must know why it is not working

flyingdragons 2020-08-10 13:04:15
while doing authenticating you might rehas the given password. Just enter the required password and dump that variable in you controller.
Paulus15 2020-08-10 13:04:20
Hello Guy. I think that you could go on one of wbesite which used this fonction for hashing password.
– Enter the password that You want and it give You the password hashed.
– Copy it and update in your database.
– Try to connect you on your app
flyingdragons 2020-08-10 13:04:30
flyingdragons 2020-08-10 13:04:15
while doing authenticating you might rehas the given password. Just enter the required password and dump that variable in you controller.

Now use this hashed passowrd in your database

Pro 2020-08-10 13:26:07
Php artisan tinker

Use AppUser
Use ………Hash

$user = User::find(2)

$user->password = Hash::make(“new password”)

$user->save()

Maybe 🤷‍♂

Paulus15 2020-08-10 13:28:43
Tŕy it
https://www.md5hashgenerator.com/

MD5 Hash GeneratorMd5Hashgenerator
A tool for creating an MD5 hash from a string. Use this fast, free tool to create an MD5 hash from a string.
Paulus15 2020-08-10 13:29:35
Pro 2020-08-10 13:26:07
Php artisan tinker

Use AppUser
Use ………Hash

$user = User::find(2)

$user->password = Hash::make(“new password”)

$user->save()

Maybe 🤷‍♂

I think that it is the best solution 👌👆

farhanahjam 2020-08-10 13:41:51
laravel_discuss-47554.jpg

farhanahjam 2020-08-10 13:42:06
I have set validations in the controller
Typ980 2020-08-10 15:06:48
Excuse me, i want to ask..
Does anyone know how to use foreach in ajax to create a dropdown on laravel? Thank u
Billa_Bongg 2020-08-10 16:08:51
Typ980 2020-08-10 15:06:48
Excuse me, i want to ask..
Does anyone know how to use foreach in ajax to create a dropdown on laravel? Thank u

Have you looked at select2

Billa_Bongg 2020-08-10 16:10:32
Typ980 2020-08-10 15:06:48
Excuse me, i want to ask..
Does anyone know how to use foreach in ajax to create a dropdown on laravel? Thank u

https://select2.org/data-sources/ajax

Ajax (remote data) | Select2 – The jQuery replacement for select boxesselect2.org
Select2 provides extensive support for populating dropdown items from a remote data source.
Typ980 2020-08-10 16:29:24
Ok, i ll try it, thank you very much everyone
smartnathan2020 2020-08-10 16:40:10
Unknownuser009 2020-08-07 14:33:00
Anyone have simple project for inventory system( include crud operation, invoicing,stock report).if anyone have llz send me link

https://github.com/smartnathan/inventory-system

smartnathan/inventory-systemGitHub
An Inventory system for both small and large scale businesses – smartnathan/inventory-system
2020-08-10 18:14:18
laravel_discuss-47563.jpg

2020-08-10 18:14:30
Hello why I’m getting this ??
rijisoft 2020-08-10 18:14:54
2020-08-10 18:14:30
Hello why I’m getting this ??

Hi , Chekc storage/logs/laravel.log

2020-08-10 18:17:27
rijisoft 2020-08-10 18:14:54
Hi , Chekc storage/logs/laravel.log

What imma looking for there ?

|