home.social

#laravel — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #laravel, aggregated by home.social.

  1. Когда Laravel Validator становится узким местом при импорте 50 000 строк

    PHP 7.4 / Laravel 8 / PostgreSQL 13 Проблема : импорт 50 тысяч строк занимал около 45 секунд. Первое подозрение: база данных, INSERT, UPSERT, индексы, размер batch и количество запросов. Реальность: бОльшая часть времени уходит на валидацию. Мы начали разбираться, почему проверка нескольких десятков обычных полей на большом массиве данных оказалась значительно дороже самой записи в PostgreSQL. В итоге удалось сократить время валидации с 42,5 секунды до 0,65 секунды , а длительность всего job — примерно с 45 до 4 секунд . В статье покажу, что именно оказалось узким местом, почему стандартный Laravel Validator оказался не самым подходящим инструментом для этого конкретного сценария и почему мы не стали от него отказываться.

    habr.com/ru/articles/1079878/

    #laravel #php #validator

  2. I joined a project where the Vue front end was built into the Docker image with no bind mount, so every change meant a manual rebuild. One addition to the compose file turned that back into a normal dev loop. #php #laravel masteringlaravel.io/daily/2026

  3. Need to process millions of rows?

    gives you 3 options:

    `get()` → 1 query, but loads everything into memory 💥

    `chunk(500)` → multiple queries, 500 records per batch 📦

    `cursor()` → streams records one-by-one with very low memory usage 🚶

    If you're simply processing each record independently, `cursor()` is often the cleanest choice:

  4. Need to process millions of rows?

    #Laravel gives you 3 options:

    `get()` → 1 query, but loads everything into memory 💥

    `chunk(500)` → multiple queries, 500 records per batch 📦

    `cursor()` → streams records one-by-one with very low memory usage 🚶

    If you're simply processing each record independently, `cursor()` is often the cleanest choice:

  5. Two weeks ago, I launched events for Laramap. Some people liked it, which made me happy, but usage is low.

    I spent two days building it between client projects, so I'd be lying if I said I wasn't a little disappointed. Did it not spread, or do people just not care?

    #laravel

  6. Laravel vs Symfony: A Comprehensive Comparison of #PHP #Frameworks

    This article provides a guide concerning #Laravel vs Symfony: a comprehensive comparison of PHP frameworks.
    Laravel vs Symfony: A Comprehensive Comparison of PHP Frameworks
    Laravel and #Symfony are two of the most popular PHP frameworks, widely used for building modern web applications. Both have strong communities, rich ecosystems, and are frequently chosen by ...
    Continued 👉 blog.radwebhosting.com/laravel #websitedevelopment

  7. Laravel vs Symfony: A Comprehensive Comparison of #PHP #Frameworks

    This article provides a guide concerning #Laravel vs Symfony: a comprehensive comparison of PHP frameworks.
    Laravel vs Symfony: A Comprehensive Comparison of PHP Frameworks
    Laravel and #Symfony are two of the most popular PHP frameworks, widely used for building modern web applications. Both have strong communities, rich ecosystems, and are frequently chosen by ...
    Continued 👉 blog.radwebhosting.com/laravel #websitedevelopment

  8. Laravel vs Symfony: A Comprehensive Comparison of #PHP #Frameworks

    This article provides a guide concerning #Laravel vs Symfony: a comprehensive comparison of PHP frameworks.
    Laravel vs Symfony: A Comprehensive Comparison of PHP Frameworks
    Laravel and #Symfony are two of the most popular PHP frameworks, widely used for building modern web applications. Both have strong communities, rich ecosystems, and are frequently chosen by ...
    Continued 👉 blog.radwebhosting.com/laravel #websitedevelopment

  9. During a recent pentest, I suddenly got hit with 403s on every request. It wasn't a WAF - it was a clever little trap one of my clients built to catch anyone poking at Livewire. Let me show you how it works. 🤓

    securinglaravel.com/security-t #Laravel

  10. Ever handed off a feature request with barely any detail and expected the developer to just figure it out? In this week's podcast, Aaron and I make the case for writing requirements before development starts, and why letting AI write them for you is a trap. #php #laravel masteringlaravel.io/daily/2026

  11. Need to send a #Laravel notification to someone who doesn't have a user account in your database?

    Skip the model entirely. 🎯

    Use Notification::route() to send it directly to their email:

  12. hi devs, i am trying to develop a server for fediverse to use in my laravel blog (newly migrated to) but i am having issue testing and verifying it actually works in real life.
    anyone know any tool to use to debug it easily? for now i only managed to run "activitypub-testing" but looking for other options ideally that do not imply running my own mastodon instance and checking its logs. #php #laravel #federation #programmer #fediverse #testing #developer

  13. hi devs, i am trying to develop a server for fediverse to use in my laravel blog (newly migrated to) but i am having issue testing and verifying it actually works in real life.
    anyone know any tool to use to debug it easily? for now i only managed to run "activitypub-testing" but looking for other options ideally that do not imply running my own mastodon instance and checking its logs. #php #laravel #federation #programmer #fediverse #testing #developer

  14. hi devs, i am trying to develop a server for fediverse to use in my laravel blog (newly migrated to) but i am having issue testing and verifying it actually works in real life.
    anyone know any tool to use to debug it easily? for now i only managed to run "activitypub-testing" but looking for other options ideally that do not imply running my own mastodon instance and checking its logs. #php #laravel #federation #programmer #fediverse #testing #developer

  15. hi devs, i am trying to develop a server for fediverse to use in my laravel blog (newly migrated to) but i am having issue testing and verifying it actually works in real life.
    anyone know any tool to use to debug it easily? for now i only managed to run "activitypub-testing" but looking for other options ideally that do not imply running my own mastodon instance and checking its logs. #php #laravel #federation #programmer #fediverse #testing #developer

  16. hi devs, i am trying to develop a server for fediverse to use in my laravel blog (newly migrated to) but i am having issue testing and verifying it actually works in real life.
    anyone know any tool to use to debug it easily? for now i only managed to run "activitypub-testing" but looking for other options ideally that do not imply running my own mastodon instance and checking its logs. #php #laravel #federation #programmer #fediverse #testing #developer

  17. Tip

    🔐 Need to store sensitive attributes securely?

    Laravel's attribute casting can handle it for you automatically behind the scenes:

  18. #Laravel Tip

    🔐 Need to store sensitive attributes securely?

    Laravel's attribute casting can handle it for you automatically behind the scenes:

  19. #Laravel Tip

    🔐 Need to store sensitive attributes securely?

    Laravel's attribute casting can handle it for you automatically behind the scenes:

  20. »If you hit a bug, describe it to a coding agent and open a PR.« — Taylor Otwell

    This is such a terrible idea.

    #Laravel disabled Issues in some of their Repos. Instead of reporting an issue, you have to open a PR, and the recommendation of the Laravel Head itself is to just vibe code it.

    I really hope this idea will not spread. But so many people follow Taylor Otwell so blindly I would be surprised if this would see almost no backlash.

    stitcher.io/blog/no-more-issues

    #Coding #WebDev #PHP #OpenSource

  21. »If you hit a bug, describe it to a coding agent and open a PR.« — Taylor Otwell

    This is such a terrible idea.

    #Laravel disabled Issues in some of their Repos. Instead of reporting an issue, you have to open a PR, and the recommendation of the Laravel Head itself is to just vibe code it.

    I really hope this idea will not spread. But so many people follow Taylor Otwell so blindly I would be surprised if this would see almost no backlash.

    stitcher.io/blog/no-more-issues

    #Coding #WebDev #PHP #OpenSource

  22. »If you hit a bug, describe it to a coding agent and open a PR.« — Taylor Otwell

    This is such a terrible idea.

    #Laravel disabled Issues in some of their Repos. Instead of reporting an issue, you have to open a PR, and the recommendation of the Laravel Head itself is to just vibe code it.

    I really hope this idea will not spread. But so many people follow Taylor Otwell so blindly I would be surprised if this would see almost no backlash.

    stitcher.io/blog/no-more-issues

    #Coding #WebDev #PHP #OpenSource

  23. »If you hit a bug, describe it to a coding agent and open a PR.« — Taylor Otwell

    This is such a terrible idea.

    #Laravel disabled Issues in some of their Repos. Instead of reporting an issue, you have to open a PR, and the recommendation of the Laravel Head itself is to just vibe code it.

    I really hope this idea will not spread. But so many people follow Taylor Otwell so blindly I would be surprised if this would see almost no backlash.

    stitcher.io/blog/no-more-issues

    #Coding #WebDev #PHP #OpenSource

  24. »If you hit a bug, describe it to a coding agent and open a PR.« — Taylor Otwell

    This is such a terrible idea.

    #Laravel disabled Issues in some of their Repos. Instead of reporting an issue, you have to open a PR, and the recommendation of the Laravel Head itself is to just vibe code it.

    I really hope this idea will not spread. But so many people follow Taylor Otwell so blindly I would be surprised if this would see almost no backlash.

    stitcher.io/blog/no-more-issues

    #Coding #WebDev #PHP #OpenSource

  25. Как выкатывать ecommerce в Битрикс по частям и не останавливать продажи (7 часть)

    Финальная часть серии — про самое нервное в любом ecommerce-проекте: как включать новую архитектуру по частям, не устраивать «большой релиз» и не останавливать продажи. К этому моменту у нас уже есть SSO, события, наблюдаемость, быстрый каталог, корзина, цены, checkout, интеграции, Gateway и SDK. Теперь начинается самая чувствительная часть — включать все это в продакшен без большого релиза или остановки продаж. Сложность — в процессе. Один модуль уже готов, второй еще нет, часть трафика ходит по старому пути, часть — по новому… Поэтому я сделала практическую схему постепенного включения: фича-флаги, канареечный трафик, двойное чтение, shadow-режим и критерии готовности.

    habr.com/ru/articles/1038072/

    #программирование #вебразработа #api #разработка #laravel #битрикс #вебразработка #api_gateway #ssr

  26. Ecommerce на Laravel, или как мы собрали headless-слой для фронтов (6 часть)

    В этой части собираем headless-слой для фронтов: Gateway, композицию API, SDK, ETag, SSR, идемпотентность и единые правила работы с запросами. Привет, хабровчане. Это снова Алиса, снова Laravel, Bitrix и попытка не превратить фронтенд в распределенный монолит. К этому моменту у нас уже есть быстрые доменные сервисы: каталог, корзина, цены, заказы, интеграции. Но фронту от этого не сильно легче. Ему все еще приходится ходить в десяток ручек, собирать ответы, следить за авторизацией и одинаково обрабатывать ошибки. Поэтому поверх доменных сервисов появляется Headless API Gateway — тонкий слой, который работает как BFF для фронтов. Он берет на себя JWT-cookie, CORS, rate-limit, кэширование, единый формат ошибок и композицию сценариев вроде листинга, карточки товара или чекаута. При этом Gateway не дублирует бизнес-логику. Его задача — валидировать входящие запросы, сходить в нужные сервисы, собрать ответ и вернуть фронту компактный JSON с ETag и нормальными HTTP-заголовками. Дальше собираем это на Laravel: CORS, middleware для JWT-cookie, rate-limit, единый формат ошибок, композиционные ручки для фронтов, кэш-заголовки и роутинг через Nginx.

    habr.com/ru/articles/1037728/

    #headless #laravel #битрикс #программирование #вебразработа #gateway #api #sdk #идемпотентность #ssr