Povilas, the js code that you have at the end of the app.blame, can I separate it into my own JS and then add the script? or does it not work like that?
Hi Povilas! Is there a way to build a client-server web-socket app with two-way communication? Does Laravel allow to build this kind of applications? Thank you!
If I understand correctly what you want to achieve, then yes, Laravel Echo and Socket.io/Pusher are the tools. Planning to shoot a course about them, in late 2021.
@@LaravelDaily thank you very much for your answer! I could be wrong but investigating this topic I figured out that Pusher works well only for sending messages from server to clients. Sending backward from client to server is not that clear and straightforward.
It's doesn't change anything in this case, and since it refers to the global config, when you mentally parse the code in practice, you tend to treat these variables as constants. For example, in JS, when you declare const, it's a good practice to keep them grouped together at the top of a method. Same applies here. Again, in practice, not in theory with pinch-perfect SOLID compliance everywhere, fairies and magic wands. It just makes it more readable and easy to parse on the eye.
@2:16 Actually...Laravel's HTTP client is a wrapper for Guzzle, which is in the dependency list by default in a fresh Laravel installation.
Thank you so much. You really make a difference in the developer community
Very good, please continue to record video's like this
Great stuff, thanks for sharing!
Thanks as always! I'll see it later! Keep working!
Since there are no api keys you might as well call the api directly from the client. (Unless they have CORS, but I doubt it. It's an API)
nice explanation. Thank you
Povilas, the js code that you have at the end of the app.blame, can I separate it into my own JS and then add the script? or does it not work like that?
Yes, should be possible. But that kinda goes against the whole philosophy of Alpine.js, it's mostly used for small almost-inline snippets.
Thank you too much for this video.
Is there a way to fetch cities from database?
If yes, how can we do that?
Thanks again.
I found how to do it.
Hello sir, Please make a video on how to setup supervisor or run queue in shared hosting
I don't recommend to use shared hosting for such operations
Hi Povilas! Is there a way to build a client-server web-socket app with two-way communication? Does Laravel allow to build this kind of applications? Thank you!
If I understand correctly what you want to achieve, then yes, Laravel Echo and Socket.io/Pusher are the tools. Planning to shoot a course about them, in late 2021.
@@LaravelDaily thank you very much for your answer!
I could be wrong but investigating this topic I figured out that Pusher works well only for sending messages from server to clients. Sending backward from client to server is not that clear and straightforward.
The only problem with this way of caching is if the response isn’t good. It’s cached with the bad response.
After instaling it and run it I get that error:
Error happened when fetching the API
Fixed the repository
Do you recommend learning Alpine over Vue??
Both
What storm theme do you use?
Material Darker
@@LaravelDaily Thanks
$coordinates = config('app.cities.'.$city) should be inside the Cache::remember() Closure. It is not used anywhere else in the __invoke method.
It's doesn't change anything in this case, and since it refers to the global config, when you mentally parse the code in practice, you tend to treat these variables as constants. For example, in JS, when you declare const, it's a good practice to keep them grouped together at the top of a method. Same applies here. Again, in practice, not in theory with pinch-perfect SOLID compliance everywhere, fairies and magic wands. It just makes it more readable and easy to parse on the eye.
Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
What is the problem?