Any laravel developer available here?

|
rebory 2019-09-10 12:02:12
Post Author : {{ $post->user->name }}
rebory 2019-09-10 12:02:37
how we can fetch it in side the controller
rebory 2019-09-10 12:10:17
in my Events table location save as location_id. but then i provide search option from front-end
rebory 2019-09-10 12:11:25
users direct type direct location name
rebory 2019-09-10 12:12:46
$location = ” Brampton”; $events = Event::where(‘location_id’, ‘LIKE’, ‘%’ . $location . ‘%’). i face this problem
farshidrezaeii 2019-09-10 12:34:37
rebory 2019-09-10 12:12:46
$location = ” Brampton”; $events = Event::where(‘location_id’, ‘LIKE’, ‘%’ . $location . ‘%’). i face this problem

hi bro.
please type in one message.

rebory 2019-09-10 12:57:55
i have query regarding laravel belongs to relationship
we are used in blade to print User Name Behalf of user_id
Post Author : {{ $post->user->name }}
how we can fetch it in side the controller
in my Events table location save as location_id. but then i provide search option from front-end
users direct type direct location name
$location = ” Brampton”; $events = Event::where(‘location_id’, ‘LIKE’, ‘%’ . $location . ‘%’). i face this problem
hamid6489 2019-09-10 16:21:23
ErSoul 2019-09-09 20:39:13
I have configured it through http. Works fine, but it’s giving me issues with https (on the browser it hangs on loading, until it finally gives me a “Site took to long to respond” error)

i don’t know
maybe you ought to talk to a system administration

ErSoul 2019-09-10 16:22:31
hamid6489 2019-09-10 16:21:23
i don’t know
maybe you ought to talk to a system administration

Indeed, it was a sysadmin issue (closed port) 😅

senhorY 2019-09-11 11:02:26
Can someone help me? I’m using Guzzle and it’s taking around 5 seconds to get the response while postman gets it instantly
senhorY 2019-09-11 11:03:27
I tried copying the curl command from postman into my terminal and again the 5 seconds delay
praneet81 2019-09-11 11:15:29
senhorY 2019-09-11 11:02:26
Can someone help me? I’m using Guzzle and it’s taking around 5 seconds to get the response while postman gets it instantly

Try using axios instead, and if need be use async await

senhorY 2019-09-11 11:15:57
I cant. This must be done in the server
senhorY 2019-09-11 11:16:46
I think I know whats happening
senhorY 2019-09-11 11:17:24
If I send the request to the IP I’m getting the response instantly. Requesting the domain name makes it slow
senhorY 2019-09-11 11:17:51
But postman seems to have some kind of cache for the requested domains
leondesign 2019-09-11 12:43:00
praneet81 2019-09-11 11:15:29
Try using axios instead, and if need be use async await

WTF axios is client side

leondesign 2019-09-11 12:43:40
senhorY 2019-09-11 11:03:27
I tried copying the curl command from postman into my terminal and again the 5 seconds delay

Sounds like cache

rebory 2019-09-11 12:48:14
Any buddy available here for help?
leondesign 2019-09-11 12:52:56
rebory 2019-09-11 12:48:14
Any buddy available here for help?

https://dontasktoask.com/

rebory 2019-09-11 12:54:29
Any laravel developer available here?
rebory 2019-09-11 12:56:00
wait Samuel
shubhamdhyani 2019-09-11 12:56:00
rebory 2019-09-11 12:54:29
Any laravel developer available here?

yea some of us dabble in the art

leondesign 2019-09-11 12:58:42
rebory 2019-09-11 12:54:29
Any laravel developer available here?

Ban @admin

leondesign 2019-09-11 12:59:08
rebory 2019-09-11 12:54:29
Any laravel developer available here?

https://dontasktoask.com/ can you fucking read It? Ty

rebory 2019-09-11 12:59:38
laravel_discuss-12761.jpg
this is my form location on change
rebory 2019-09-11 13:00:09
laravel_discuss-12762.jpg
ajax request
rebory 2019-09-11 13:01:06
laravel_discuss-12764.jpg
i recive accorate output in response
rebory 2019-09-11 13:01:27
i pluck hotels by location_id
senhorY 2019-09-11 13:01:39
leondesign 2019-09-11 12:43:40
Sounds like cache

Finally I’ve found the issue. It was IPv6 resolving the domain name

senhorY 2019-09-11 13:01:53
I forced it to use IPv4 and it’s lightning fast
rebory 2019-09-11 13:03:21
but i want to put in value of hotel list
rebory 2019-09-11 13:03:49
laravel_discuss-12769.jpg
second dropdown in the form
rebory 2019-09-11 13:04:55
i used laravel collective select
rebory 2019-09-11 13:07:01
laravel_discuss-12772.jpg
i trying to append in hotels dropdown i used class hotels check their but value not shown in dropdown
rebory 2019-09-11 13:07:24
Yes
rebory 2019-09-11 13:08:23
How i render in select??
farshidrezaeii 2019-09-11 13:10:12
https://lmgtfy.com/?q=jquery+append+options+to+select
rebory 2019-09-11 13:11:34
I used laravel collective form 😔
rebory 2019-09-11 13:11:50
farshidrezaeii 2019-09-11 13:10:12
https://lmgtfy.com/?q=jquery+append+options+to+select

I can check pls wait

leondesign 2019-09-11 13:12:12
rebory 2019-09-11 13:11:34
I used laravel collective form 😔

So? Its client side

rebory 2019-09-11 13:20:42
but i have values in single varible
rebory 2019-09-11 13:20:45
let hotels = data.hotels;
console.log(hotels);
leondesign 2019-09-11 13:22:03
So?
rebory 2019-09-11 13:23:49
laravel_discuss-12796.jpg

rebory 2019-09-11 13:24:32
this is from your link
rebory 2019-09-11 13:27:22
ok Thank you Samuel
rebory 2019-09-11 13:30:28
Sorry but i have only place where someone help me
rebory 2019-09-11 13:30:52
thank you all of you.
rebory 2019-09-11 14:15:33
Samuel is most Respect becos he is help to every beginner
|