- Видео 14
- Просмотров 69 257
Sabatino Develops
Бельгия
Добавлен 26 май 2010
How does the Laravel defer helper work? (Plain PHP example included!)
#webdev #laravel
In this video we'll be taking an in-depth look at how the Laravel defer helper works. We'll be diving into the Response class of Symfony and we will explore a vanilla PHP example that illustrates how fastcgi can signal to the client that the response has been sent over.
Blogpost: www.sabatino.dev/how-does-the-laravel-defer-helper-work-plain-php-example-included/
00:00 - Start
00:45 - Terminable middleware
02:04 - Finishing a response
04:15 - Limitations
In this video we'll be taking an in-depth look at how the Laravel defer helper works. We'll be diving into the Response class of Symfony and we will explore a vanilla PHP example that illustrates how fastcgi can signal to the client that the response has been sent over.
Blogpost: www.sabatino.dev/how-does-the-laravel-defer-helper-work-plain-php-example-included/
00:00 - Start
00:45 - Terminable middleware
02:04 - Finishing a response
04:15 - Limitations
Просмотров: 2 229
Видео
I developed an open-source faceless video automation service using Laravel (code included!)
Просмотров 6 тыс.2 месяца назад
#laravel #webdev #webdevelopment #opensource #programming #ai #artificialintelligence #aws #remotion This open-source faceless video automation service has its roots in my commercial project VideoMat videomat.io. In this video I'll be going over the open-source faceless automation tool I created using Laravel & Remotion. During development of this project I also opened a PR to the Laravel frame...
Migrating from DatoCMS to Filament saved me €2,400! (Laravel + Filament marketing website setup)
Просмотров 3,1 тыс.3 месяца назад
#laravel #webdevelopment #webdev #filamentphp #datocms #tailwind #vue #inertia DatoCMS is amazing, but we were paying over €2,400/yearly for a pretty simple website. In this video I'll be doing a deepdive in our new marketing website setup using Filament PHP. Links: - Marketing website starter kit: github.com/SabatinoMasala/filament-marketing-starter - Blog: sabatino.dev - Discord: discord.gg/b...
How to scale Laravel: beyond the basics (Advanced Laravel Scaling)
Просмотров 15 тыс.4 месяца назад
#laravel #webdev #php #mysql #aws In this video we’ll be talking about some lesser known methods that helped me scale my Laravel apps to millions of users. I’ve got 5 great tips for you, so let's dive in! Article: www.sabatino.dev/how-to-scale-laravel-beyond-the-basics-advanced-laravel-scaling/ 00:00 - Start 00:14 - Read & write database connections 01:56 - Batch inserts & updates 03:45 - Full ...
Building AI powered apps in Laravel using Replicate
Просмотров 5 тыс.5 месяцев назад
#laravel #webdev #artificialintelligence #stablediffusion #llm #gpt Links: - Article: www.sabatino.dev/building-ai-powered-apps-with-laravel-replicate/ - Replicate: replicate.com - replicate-php client: github.com/SabatinoMasala/replicate-php/ Over the past years I’ve built a handful of apps that heavily relied on LLM’s, diffusers and other AI models using Laravel. In this video, I’ll be showin...
DNS management in a multi-tenant setup
Просмотров 4,5 тыс.6 месяцев назад
#laravel #webdevelopment #webdev DNS management on a larger scale, for example in a multitenant application, can be a a massive pain. In this video we’ll be taking a look at how you can manage hundreds, if not thousands of custom domains for your multi-tenant application, without a headache! Article: www.sabatino.dev/dns-management-in-a-multi-tenant-setup/ 00:00 - Introduction 00:16 - Multitena...
Learnings from our multi-tenant Laravel application
Просмотров 17 тыс.7 месяцев назад
In this video we'll be taking an in-depth look at our multi-tenant food ordering app, that's built in Laravel. Article: www.sabatino.dev/shared-database-multi-tenancy-in-laravel/ We'll talk about our single, shared database approach, and the issues that come with it. And finally we take a look at how tenant resolving works in our application. How a flash sale took down our entire system: ruclip...
BFCache explained & how to make your webpage compatible with it
Просмотров 1,4 тыс.7 месяцев назад
#webdevelopment #javascript #frontend BFCache stands for backwards/forwards cache, and is a mechanism that allows browsers to keep a snapshot of an entirely rendered page in-memory. In this video we'll dive deeper into the mechanisms that allows browsers to render a webpage from the BFCache almost immediately, with barely any loadtimes. We also take a look at what happens to the execution of yo...
Scaling our Laravel app, after a flash sale took down our MySQL database
Просмотров 8 тыс.7 месяцев назад
#webdevelopment #laravel #developer #devops #mysql #redis #caching In this video I talk about how a sudden spike in traffic (ie. a Flash Sale) took down our database and Laravel app. Learn how we effectively scaled our app using an effective Redis caching strategy. Shopify pod-based architecture: shopify.engineering/a-pods-architecture-to-allow-shopify-to-scale 00:00 - Introduction 00:25 - The ...
WebUSB is my favorite browser API
Просмотров 2,9 тыс.8 месяцев назад
#webdevelopment #frontend #webdeveloper WebUSB is an API that allows web applications to communicate directly with USB devices, bypassing the need for native drivers or middleware. As you might imagine, this opens up a universe of new possibilities for developers, making hardware more accessible than ever through the web. The video gives a high-level overview of the possibilities of WebUSB and ...
SVG ForeignObject saved us over €2,400 yearly!
Просмотров 1,5 тыс.8 месяцев назад
#webdevelopment #laravel #aws #devops I develop and maintain an ecommerce solution for restaurants and snackbars. A big part of our solution is streamlining the production process for takeout and delivery orders. At the heart of the production station, we install a tablet and a thermal printer, which will print the incoming orders and really help the merchant to keep their operations running sm...
Shipping Prisma in Electron was a mistake
Просмотров 1 тыс.8 месяцев назад
#webdevelopment #nodejs #frontend Lessons learned from converting our web-based app to Electron: ruclips.net/video/J3PQyWN5bH0/видео.html Article: www.sabatino.dev/why-shipping-prisma-with-our-electron-app-was-a-mistake/ When we made the move to Electron, I had to decide which database-technology we wanted to use. I’m a big fan of Prisma so I thought to myself: Can we not simply ship Prisma wit...
Pivoting to an offline-first app using Electron - lessons learned
Просмотров 6848 месяцев назад
#webdevelopment #nodejs #frontend Article: www.sabatino.dev/from-web-to-electron-lessons-learned/ I wanted to share a couple of lessons we learned while developing our Electron-based point-of-sales app. We started out with a web-based version that slowly evolved to an installable Windows application. The web-based version was a single-page-app that ran in the browser. From a development perspec...
NGINX worker connections caused downtime (how to configure nginx worker_connections properly)
Просмотров 1,3 тыс.9 месяцев назад
#webdevelopment #laravel #nginx #devops In this video we're diving into a recent downtime incident I faced on my web app. My web app is a multi-tenant ecommerce application that provides webshops for restaurants and snackbars, kinda like Shopify on a smaller scale. It’s mainly powered by a Laravel monolithic application. We have a pretty predictable traffic pattern, with 1 spike around lunch ti...
i just started running into this problem . I will migrate to drizzle asap :D .. its almost as nice .. a little bit more verbose but for electron this will save alot of headaches :D
it does not have the problem of requireing these binaries ... really a red flag if you have to dig into node modules at runtime :D
Nice! Will have to look into drizzle 😉
with your current setup and load what is the specs of your RDS instance?
We learn so much with you man. 🎉
Happy to hear that!
What about more processing power though octane?
Octane video will come soon, stay tuned 😎
amazing
Thanks
This is pure gold. Thanks!
Glad you enjoyed it!
Thank you for sharing this Sebatino! Can you please also make content on payment processor integration in Laravel? Especially those processors which have worldwide support.
Good idea, thanks!
Did anyone try defer method with Laravel Sail?
If it uses FPM - it should work
Sail uses php serve, I don't think it's fpm. You'd need to change the docker file to use nginx or Apache.
Does anyone know how one can test this defer method, if we use defer(fn() => APIClass::send()) Let's say in the test, I faked Http for the call the APIClass would have made, the test fails if I assert a request was sent because of defer method.
Learnt something new. Thank you very much. Try to make regular videos on Laravel Ecosystem. Good luck. Subscribed!
Thanks for the sub!
This guy devs ;). You are a gem, Sabatino. All this labor to provide useful knowledge to people. Kudos.
Much appreciated! 🙏
is this specific to ngnix server?
Not specifically, you do need PHP-fpm though. It works with Apache, Caddy, … as well.
Thanks for sharing Sabatino! Love the examples provided.
Thanks Josh! First time I filmed using OBS and implemented some of your tips, massive time saver! 👏
@@sabatino-dev that’s awesome. It looks great!
Great video, both the content and the looks and transitions are very well done. Will give the defer to send an email idea a try on Wire in the Wild.
Thanks for the kind words! Filmed this one with OBS for the first time, took some tips from joshcirre 🙌
Thanks for make this contents to us👏👏👏👏👏👏
It's my pleasure 👏
Yes learned something new specially limitations to be noted. Very informative videos as always
Thanks for watching!
Great video! Clear, concise and I learned a few new things!
Great to hear!
Thank u for such a great content as a Laravel developer i learn alot and also in next video can u explain how we can optimize yajra datatables efficiently
Good idea! Will note it down, thanks! :-)
i think block functionality can be done with filament fabricator plugin as well ... correct me if I'm wrong...
Potentially indeed! I’d have to check it out
I love you!!!!!!!!!!! You are a GOD among men!
🙏
Can I hire you?
Shoot me a message over on discord discord.gg/Z58e4b8qWk
Can I except adding billing method ?
I don't think so.
Can we use sequelize instead of prisma in offline electron app with sqlite? is it better option?
I’m pretty sure it uses the same driver behind-the-scenes, so you might end up with the same issues.
@@sabatino-dev I have used it and it is working completely fine not getting any error I can use it without error in distribution also.
Very useful. Thank you❤. Can you contain in such a topic?
Thanks! Could you elaborate what you mean? 😊
Remove the billing options. it's really annoying.
Can you elaborate? Replicate is a third party provider
@@sabatino-dev Add a payment method to run this model. Each run costs approximately$0.01. Alternatively, try out our featured models for free.
what is our use is to use centralized database. then we need something like prisma
Sure, then Prisma is great!
@@sabatino-dev not so great. Had many issues using it with electron-vite. I think I need monorepo to import database and types
Ah, I mis understood, I thought you were talking about running Prisma on a webserver.
@@sabatino-dev I’m using it on Electron app to handle db operations with ease. But generation does not well very well. It uses .prisma/client/index-browser but browsers are not able to import it like that. I solved the issue mapping Prisma explicitly in the vite config. And copy the prisma package as resource in Electron
I tried to install the client you provided but for some reason my vs code cannot find it even if though it is installed.
Oh, which error do you get? You can hop in my Discord & we’ll figure it out discord.gg/4PJCWp7E
@@sabatino-dev I just fixed it, thank you
@@sabatino-dev discord server link is invalid
great video. It´s rare to find a channel of someone with real life experiences on solving applications issues. Especially issues that demands changes in our softwares. It was a bold but correct decision.
Thanks for the kind words!
You explained your process so well! Thanks for putting this together!
Glad it was helpful!
amazing video 🙂
Thank you! 😃
Your 10+ years experience working on a real large app gives your clear and concise presentation much more authority. Great job on your channel.
Thanks for watching!
I’ve done single database tenants before and yeah, it does simply things, but I was constantly scared to death of forgetting about the tenant ID relationship.
I know that feeling 🙈 in our app we kinda ‘hinge’ off of a root object, so it’s pretty much impossible to forget it eg. t()->orders()->count() - and t() resolves to the resolved tenant - works great.
This is what we can call a different kind of project that helps you understand lots of things. Thank you sir 🙏
My pleasure!
@sabino-dev great video, excuse me, do you have any resources to implement the printing of a ticket, using a thermal printer per IP address from Laravel Inertia with vue? I have investigated and it must be with some .net script and expose a certain port to consume it from the browser, but it is still not clear to me.
You probably need to communicate with the printer using TCP, which is not possible from the web. That’s why you can create a .NET/Node script that exposes a web server and relays messages to the printer using TCP. Send me a message on discord if you want to discuss further 👌
Wow with that voice and diction and such amazing project ideas you're gonna be a star!
Thank you! 😃
Love this🎉🎉🎉🎉
Thx!
It would be wonderful if you divide the steps into a complete step by step tutorial
Good suggestion!
This is one of the best programming videos I've watched in a long time. Thanks!
Thanks Brent, appreciated! 🙏
HI, nice work, congrats. Can you tell please how much costs generate the images in Replicate?
Top of my head, it’s something like $0.03 per image generated with Flux. You can do cheaper models as well, like SDXL, but Flux has the best results imo.
Dude, your content is awesome. If I didn't have beef with PHP, I would have surely worked on this.
Haha, you should give it a go nonetheless 😉
Subscribed! 🥳
Thx Jonas! 🎉
❤ thanks i really find this informative personally, has always finds a best way around organizing my prompt on laravel guess I stumbled upon a solution while watching this 😊
Glad it was helpful!
mr, can you make a video showing implementing webusb with printer. Thanks from Mozambique
Good suggestion, thanks!
I love your content so much
Thx!
What this bro? it's very helpful really you are talking about challenges that absolutely often face me you are amazing, keep going
Thank you so much 😀
Great man, finally i am watching someone talking about advanced optimization in Laravel
Thanks for watching 🙏
sad cant used it cause of api charges
Replicate charges a GPU fee indeed, should be around $0.10 per video generated max.
Guys Like you make me feel so tiny and amazed and motivated, so so cool. Thank you for uploading and sharing such an gem ideas and content.
Thanks for watching! 🙏
If your name is Sabatino, i have to say you have one of the coolest names out there. Also thanks for the info
Haha thanks! It was my grandfathers name, and as tradition goes in Italy it’s passed down - so yes, it’s my real name! Thanks 😎
I'm not PHP developer but I liked your video
Thanks!