Sabatino Develops
Sabatino Develops
  • Видео 14
  • Просмотров 69 257
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
Просмотров: 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...

Комментарии

  • @MedyGames
    @MedyGames День назад

    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

    • @MedyGames
      @MedyGames День назад

      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

    • @sabatino-dev
      @sabatino-dev День назад

      Nice! Will have to look into drizzle 😉

  • @heyyedwin
    @heyyedwin 2 дня назад

    with your current setup and load what is the specs of your RDS instance?

  • @youssef.freelife
    @youssef.freelife 4 дня назад

    We learn so much with you man. 🎉

  • @gkiokan
    @gkiokan 11 дней назад

    What about more processing power though octane?

    • @sabatino-dev
      @sabatino-dev 11 дней назад

      Octane video will come soon, stay tuned 😎

  • @abdallakaram5376
    @abdallakaram5376 15 дней назад

    amazing

  • @nicolasmenescardi4077
    @nicolasmenescardi4077 22 дня назад

    This is pure gold. Thanks!

  • @VusalNovruzov-v3x
    @VusalNovruzov-v3x 22 дня назад

    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.

  • @zeljkomarenovic9326
    @zeljkomarenovic9326 25 дней назад

    Did anyone try defer method with Laravel Sail?

    • @sabatino-dev
      @sabatino-dev 25 дней назад

      If it uses FPM - it should work

    • @imqqmi
      @imqqmi 24 дня назад

      Sail uses php serve, I don't think it's fpm. You'd need to change the docker file to use nginx or Apache.

  • @joshajiniran
    @joshajiniran 25 дней назад

    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.

  • @SunwarulBERI
    @SunwarulBERI 25 дней назад

    Learnt something new. Thank you very much. Try to make regular videos on Laravel Ecosystem. Good luck. Subscribed!

  • @RedJack70
    @RedJack70 25 дней назад

    This guy devs ;). You are a gem, Sabatino. All this labor to provide useful knowledge to people. Kudos.

  • @sanjayojha1
    @sanjayojha1 25 дней назад

    is this specific to ngnix server?

    • @sabatino-dev
      @sabatino-dev 25 дней назад

      Not specifically, you do need PHP-fpm though. It works with Apache, Caddy, … as well.

  • @joshcirre
    @joshcirre 26 дней назад

    Thanks for sharing Sabatino! Love the examples provided.

    • @sabatino-dev
      @sabatino-dev 26 дней назад

      Thanks Josh! First time I filmed using OBS and implemented some of your tips, massive time saver! 👏

    • @joshcirre
      @joshcirre 26 дней назад

      @@sabatino-dev that’s awesome. It looks great!

  • @theneverything
    @theneverything 26 дней назад

    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.

    • @sabatino-dev
      @sabatino-dev 23 дня назад

      Thanks for the kind words! Filmed this one with OBS for the first time, took some tips from joshcirre 🙌

  • @rootraiz8108
    @rootraiz8108 26 дней назад

    Thanks for make this contents to us👏👏👏👏👏👏

  • @fahadullah4248
    @fahadullah4248 26 дней назад

    Yes learned something new specially limitations to be noted. Very informative videos as always

  • @pindab0ter
    @pindab0ter 26 дней назад

    Great video! Clear, concise and I learned a few new things!

  • @amirshahzad5386
    @amirshahzad5386 26 дней назад

    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

    • @sabatino-dev
      @sabatino-dev 26 дней назад

      Good idea! Will note it down, thanks! :-)

  • @inishantthakur
    @inishantthakur 27 дней назад

    i think block functionality can be done with filament fabricator plugin as well ... correct me if I'm wrong...

    • @sabatino-dev
      @sabatino-dev 27 дней назад

      Potentially indeed! I’d have to check it out

  • @hamburger--fries
    @hamburger--fries 29 дней назад

    I love you!!!!!!!!!!! You are a GOD among men!

  • @AnonymousDJ305
    @AnonymousDJ305 Месяц назад

    Can I hire you?

    • @sabatino-dev
      @sabatino-dev Месяц назад

      Shoot me a message over on discord discord.gg/Z58e4b8qWk

  • @ahmedmaher7875
    @ahmedmaher7875 Месяц назад

    Can I except adding billing method ?

  • @virajgamdha5328
    @virajgamdha5328 Месяц назад

    Can we use sequelize instead of prisma in offline electron app with sqlite? is it better option?

    • @sabatino-dev
      @sabatino-dev Месяц назад

      I’m pretty sure it uses the same driver behind-the-scenes, so you might end up with the same issues.

    • @virajgamdha5328
      @virajgamdha5328 Месяц назад

      @@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.

  • @abdallahelsaed1434
    @abdallahelsaed1434 Месяц назад

    Very useful. Thank you❤. Can you contain in such a topic?

    • @sabatino-dev
      @sabatino-dev Месяц назад

      Thanks! Could you elaborate what you mean? 😊

  • @limonislam7048
    @limonislam7048 Месяц назад

    Remove the billing options. it's really annoying.

    • @sabatino-dev
      @sabatino-dev Месяц назад

      Can you elaborate? Replicate is a third party provider

    • @limonislam7048
      @limonislam7048 Месяц назад

      @@sabatino-dev Add a payment method to run this model. Each run costs approximately$0.01. Alternatively, try out our featured models for free.

  • @undercontr
    @undercontr Месяц назад

    what is our use is to use centralized database. then we need something like prisma

    • @sabatino-dev
      @sabatino-dev Месяц назад

      Sure, then Prisma is great!

    • @undercontr
      @undercontr Месяц назад

      @@sabatino-dev not so great. Had many issues using it with electron-vite. I think I need monorepo to import database and types

    • @sabatino-dev
      @sabatino-dev Месяц назад

      Ah, I mis understood, I thought you were talking about running Prisma on a webserver.

    • @undercontr
      @undercontr Месяц назад

      @@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

  • @VusalNovruzov-v3x
    @VusalNovruzov-v3x Месяц назад

    I tried to install the client you provided but for some reason my vs code cannot find it even if though it is installed.

    • @sabatino-dev
      @sabatino-dev Месяц назад

      Oh, which error do you get? You can hop in my Discord & we’ll figure it out discord.gg/4PJCWp7E

    • @VusalNovruzov-v3x
      @VusalNovruzov-v3x Месяц назад

      @@sabatino-dev I just fixed it, thank you

    • @VusalNovruzov-v3x
      @VusalNovruzov-v3x Месяц назад

      @@sabatino-dev discord server link is invalid

  • @prgaray1
    @prgaray1 2 месяца назад

    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.

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      Thanks for the kind words!

  • @kaelandchatman4780
    @kaelandchatman4780 2 месяца назад

    You explained your process so well! Thanks for putting this together!

  • @davidadokuru8139
    @davidadokuru8139 2 месяца назад

    amazing video 🙂

  • @cb73
    @cb73 2 месяца назад

    Your 10+ years experience working on a real large app gives your clear and concise presentation much more authority. Great job on your channel.

  • @cb73
    @cb73 2 месяца назад

    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.

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      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.

  • @AbderrazzakSAMADI
    @AbderrazzakSAMADI 2 месяца назад

    This is what we can call a different kind of project that helps you understand lots of things. Thank you sir 🙏

  • @walterhernandez9944
    @walterhernandez9944 2 месяца назад

    @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.

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      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 👌

  • @linjustek
    @linjustek 2 месяца назад

    Wow with that voice and diction and such amazing project ideas you're gonna be a star!

  • @schneidershades
    @schneidershades 2 месяца назад

    Love this🎉🎉🎉🎉

  • @wassupdoc7742
    @wassupdoc7742 2 месяца назад

    It would be wonderful if you divide the steps into a complete step by step tutorial

  • @phpannotated
    @phpannotated 2 месяца назад

    This is one of the best programming videos I've watched in a long time. Thanks!

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      Thanks Brent, appreciated! 🙏

  • @thejuanum
    @thejuanum 2 месяца назад

    HI, nice work, congrats. Can you tell please how much costs generate the images in Replicate?

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      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.

  • @iamDyeus
    @iamDyeus 2 месяца назад

    Dude, your content is awesome. If I didn't have beef with PHP, I would have surely worked on this.

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      Haha, you should give it a go nonetheless 😉

  • @jonasdehovre9183
    @jonasdehovre9183 2 месяца назад

    Subscribed! 🥳

  • @jonathanazuonye1203
    @jonathanazuonye1203 2 месяца назад

    ❤ 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 😊

  • @rootraiz8108
    @rootraiz8108 2 месяца назад

    mr, can you make a video showing implementing webusb with printer. Thanks from Mozambique

  • @rootraiz8108
    @rootraiz8108 2 месяца назад

    I love your content so much

  • @AbedAbugozah
    @AbedAbugozah 2 месяца назад

    What this bro? it's very helpful really you are talking about challenges that absolutely often face me you are amazing, keep going

  • @AbedAbugozah
    @AbedAbugozah 2 месяца назад

    Great man, finally i am watching someone talking about advanced optimization in Laravel

  • @VaibhavShewale
    @VaibhavShewale 2 месяца назад

    sad cant used it cause of api charges

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      Replicate charges a GPU fee indeed, should be around $0.10 per video generated max.

  • @pratikbhujel
    @pratikbhujel 2 месяца назад

    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.

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      Thanks for watching! 🙏

  • @piezoelectric627
    @piezoelectric627 2 месяца назад

    If your name is Sabatino, i have to say you have one of the coolest names out there. Also thanks for the info

    • @sabatino-dev
      @sabatino-dev 2 месяца назад

      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 😎

  • @alexdin1565
    @alexdin1565 2 месяца назад

    I'm not PHP developer but I liked your video