Can anybody tell me how to fetch selected data from dropdown using php Or js?

|
Bhuvi100 2020-12-22 22:13:15
If you simply want to display the diff for each object,you can achieve it by $this->effectiveDate
Bhuvi100 2020-12-22 22:16:46
public function getRemainingTimeAttribute()
{
$zaman = $this->effectiveDate;
$date = Carbon::parse($zaman);

$now = Carbon::now();

$diff = $date->diffForHumans($now);

return $diff;
}

rootkings 2020-12-22 22:17:14
Bhuvi100 2020-12-22 22:16:46
public function getRemainingTimeAttribute()
{
$zaman = $this->effectiveDate;
$date = Carbon::parse($zaman);

$now = Carbon::now();

$diff = $date->diffForHumans($now);

return $diff;
}

I’ll try thx!

rootkings 2020-12-22 22:17:57
Bhuvi100 2020-12-22 22:13:15
If you simply want to display the diff for each object,you can achieve it by $this->effectiveDate

Thx for information, i am newbie of laravel.

Bhuvi100 2020-12-22 22:18:55
rootkings 2020-12-22 22:17:57
Thx for information, i am newbie of laravel.

No worries I was a newbie just 4months ago

Bhuvi100 2020-12-22 22:19:24
Just keep building projects
Bhuvi100 2020-12-22 22:19:35
And learn from your mistakes
rootkings 2020-12-22 22:20:25
Yea, i do that.
2020-12-22 23:25:37
Hi , does anyone here recently use socialite and oauth2 in a project?
2020-12-23 00:34:31
Can anybody tell me how to fetch selected data from dropdown using php Or js?
Monopoly 2020-12-23 03:39:13
Please who can help me with how can I use google contact api
Jomitz 2020-12-23 05:58:45
2020-12-22 23:25:37
Hi , does anyone here recently use socialite and oauth2 in a project?

Yup why?

Jomitz 2020-12-23 05:59:23
2020-12-23 00:34:31
Can anybody tell me how to fetch selected data from dropdown using php Or js?

Is dropdown a plugin or a select tag

Jomitz 2020-12-23 06:02:19
2020-12-23 00:34:31
Can anybody tell me how to fetch selected data from dropdown using php Or js?

If its a bootstrap dropdown the selected element will contain classes called active or show or selected you can use js to retrive the selected element by using its parent as the container and searching its child

chiserge 2020-12-23 08:28:30
Hey,

I installed a fresh laravel project on my machine and when I launched, the respond was 500 server error.

Please someone should five me a helping had

Thanks and waiting

Bhuvi100 2020-12-23 08:38:34
chiserge 2020-12-23 08:28:30
Hey,

I installed a fresh laravel project on my machine and when I launched, the respond was 500 server error.

Please someone should five me a helping had

Thanks and waiting

Enable debugging mode and send the error message

icloudservice2022 2020-12-23 10:27:41
Helllo everyone, i have an issue with my panel “laravel” anyone professional to help me to fix it please ?

It showing white page, it was perfectly working untill today

icloudservice2022 2020-12-23 10:28:12
laravel_discuss-63661.jpg

2020-12-23 10:31:31
laravel_discuss-63662.jpg

2020-12-23 10:31:42
Hello I’m trying to export excel all pages but something wrong 😑
hypernxf 2020-12-23 10:36:35
are you sure applicant_id exists?
rootkings 2020-12-23 12:02:41
Hey everyone, I returned json file in my Model. I want to ask to you all, how can i read like this in json file: http://prntscr.com/w8d2ob

ScreenshotLightshot
Captured with Lightshot
rootkings 2020-12-23 12:03:07
My code: http://prntscr.com/w8d3f2

ScreenshotLightshot
Captured with Lightshot
amirvalhalla 2020-12-23 12:15:16
2020-12-22 23:25:37
Hi , does anyone here recently use socialite and oauth2 in a project?

Yep what’s your problem?

rootkings 2020-12-23 12:31:00
rootkings 2020-12-23 12:02:41
Hey everyone, I returned json file in my Model. I want to ask to you all, how can i read like this in json file: http://prntscr.com/w8d2ob

Does any suggestions? I just need to how to get hⓂi data from jsopn and parsed like this 2 day, 3 hour,4 minutes remaining.

Bhuvi100 2020-12-23 12:43:29
rootkings 2020-12-23 12:31:00
Does any suggestions? I just need to how to get hⓂi data from jsopn and parsed like this 2 day, 3 hour,4 minutes remaining.

diffForHumans

rootkings 2020-12-23 12:54:32
Bhuvi100 2020-12-23 12:43:29
diffForHumans

diffForHumans returning just days like that: 3 days after

hypernxf 2020-12-23 13:04:05
Why dont you just format it yourself?
hypernxf 2020-12-23 13:04:28
it’s just a matter of combining the property into a string right?
hypernxf 2020-12-23 13:04:46
or you can just create one more append attributes
hypernxf 2020-12-23 13:06:20
remaining_time_string

function getRemaingTimeStringAttribute() {
return “{$this->remainingTime->d} days, {$this->remainingTime->h} hours, , {$this->remainingTime->i} mins , {$this->remainingTime->s} seconds, ”
}

hypernxf 2020-12-23 13:06:55
or you can just do it in remainingTime() function if you dont need to store the raw value
fam85 2020-12-23 13:19:22
Hello
I would like to ask about multi vendor laravel website scripts
fam85 2020-12-23 13:19:46
Do anyone of you has an experience with this
Acird Burn 2020-12-23 13:25:30
fam85 2020-12-23 13:19:22
Hello
I would like to ask about multi vendor laravel website scripts

Yes

|