โ prev | next โ
YgmiLawliet 2021-06-16 01:00:30
YgmiLawliet 2021-06-16 01:00:31
DesolatorMagno 2021-06-16 01:01:55
YgmiLawliet 2021-06-16 01:00:30
Take the array of values and set it in JS and use it (for each value there would be a input)
YgmiLawliet 2021-06-16 01:10:26
DesolatorMagno 2021-06-16 01:01:55
Take the array of values and set it in JS and use it (for each value there would be a input)
sir is it mean, foreach each value to make it display on input text field?
DesolatorMagno 2021-06-16 01:12:35
try again, i didn’t understand what you said.
DesolatorMagno 2021-06-16 01:12:59
TL;DR
You take the data from PHP
You use it in JS
YgmiLawliet 2021-06-16 01:15:27
DesolatorMagno 2021-06-16 00:54:58
Spoiler alert, it would be like if you where working with a array of options, where options have all the selected values.
sir is it similar to this concept?
DesolatorMagno 2021-06-16 01:18:07
Yes, but because you are using JS to build the inputs, you can’t use PHP to fill the data.
DesolatorMagno 2021-06-16 01:18:17
JS Create them, JS fill the data.
YgmiLawliet 2021-06-16 01:21:28
DesolatorMagno 2021-06-16 01:18:17
JS Create them, JS fill the data.
yes agree.. for the field from 2 to N the JS will create
YgmiLawliet 2021-06-16 01:22:59
how to make the data from PHP if i require to use dynamic input ( if for the field 2 to N is dynamic) ๐๐
YgmiLawliet 2021-06-16 01:23:23
sorry sir just my knowledge is too lac
DesolatorMagno 2021-06-16 01:33:29
YgmiLawliet 2021-06-16 01:00:30
Here
DesolatorMagno 2021-06-16 01:33:43
Check how OLD return the data.
YgmiLawliet 2021-06-16 01:39:31
DesolatorMagno 2021-06-16 01:33:43
Check how OLD return the data.
how OLD? did you mean this sir? value=”{{ old(‘addMoreInputFields[‘ + i + ‘][justifikasi]’) }}”
DesolatorMagno 2021-06-16 01:40:26
yes, that old..
DesolatorMagno 2021-06-16 01:41:13
old() hold all the data from the inputs, so there is the value for those “Dynamic Inputs!” that you use.
YgmiLawliet 2021-06-16 01:49:36
DesolatorMagno 2021-06-16 01:41:13
old() hold all the data from the inputs, so there is the value for those “Dynamic Inputs!” that you use.

i do it on input but when it in javascript i cannot do it … here is the javascript it cause error
YgmiLawliet 2021-06-16 01:51:50

its still the same sir …๐
YgmiLawliet 2021-06-16 01:51:51
YgmiLawliet 2021-06-16 01:51:52
DesolatorMagno 2021-06-16 01:58:06
Cogito, ergo sum
DesolatorMagno 2021-06-16 02:10:18
What you did is completely wrong, if you were my friend i would say that you should try selling chicha or something.
Think for a second, how would you build (using only php) a group of inputs where the number of inputs depends in a array size, and each input value would be the value for that position in the array.
YgmiLawliet 2021-06-16 02:59:50
DesolatorMagno 2021-06-16 02:10:18
What you did is completely wrong, if you were my friend i would say that you should try selling chicha or something.
Think for a second, how would you build (using only php) a group of inputs where the number of inputs depends in a array size, and each input value would be the value for that position in the array.
Ok sir
DesolatorMagno 2021-06-16 03:00:29
That same logic would be used for JS, just that the initial data from the array is inside old() in php.
DesolatorMagno 2021-06-16 03:03:05
DesolatorMagno 2021-06-16 00:54:58
Spoiler alert, it would be like if you where working with a array of options, where options have all the selected values.
For a second think you have
$values = [
0 => ‘Politics’
1 => ‘Movies’
2 => ‘World’
];
And with that you would build those input.
Sona S Vimal 2021-06-16 05:52:33
nikunj vaghasiya 2021-06-15 18:44:27
There are no inbuilt function you can use groupBy query DB query for getting this type of result
Thanku๐
codingtracker 2021-06-16 06:00:53
https://codingtracker.blogspot.com/2021/06/laravel-custom-service-provider-tutorial.html
Anutosh Ghosh 2021-06-16 06:50:44
Possibility of creating a dynamic associative array inside a loop
In javascript we use objects to relate one thing to another, in php we use associative array for the same, now is it possible to create a dynamic associative array inside a loop in php with foreach, where both key and value are dynamic
Like this
$array=array();
foreach($object as $key=>$value){
array_push(array,$key=>$value);
}
Marvixino 2021-06-16 08:40:54
I was using laravel/ui auth for stateless authentication, now with laravel 8 what is the replacement for stateless auth?
Marvixino 2021-06-16 08:41:40
Marvixino 2021-06-16 08:40:54
I was using laravel/ui auth for stateless authentication, now with laravel 8 what is the replacement for stateless auth?
Should do my own auth controller for this?
Lalit Rana 2021-06-16 08:44:14
Marvixino 2021-06-16 08:40:54
I was using laravel/ui auth for stateless authentication, now with laravel 8 what is the replacement for stateless auth?
you can use laravel-breeze , it’s new in laravel 8
ะะดัะฐะฒััะฒัะนัะต 2021-06-16 08:46:58
Marvixino 2021-06-16 08:40:54
I was using laravel/ui auth for stateless authentication, now with laravel 8 what is the replacement for stateless auth?
you can continue to use laravel/ui , they’re supports laravel 8. Or try fortify
Anuj 2021-06-16 08:47:07

Token not create
โ prev | next โ