home.social

#laravel — Public Fediverse posts

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

  1. Here's a fun little exercise to see if your code could be improved. Read it out loud. Let's look at an example that demonstrates it. #php #laravel masteringlaravel.io/daily/2026

  2. For PHP dev work I have switched to Lerd (from Valet) on my demo laptop (along with macOS 27). I’d love to hear others thoughts if they are or were Valet users and have switched or tried Lerd.

    My initial thoughts are: Interesting, seems mostly seamless, fairly lightweight, love the dashboard and ease of editing php and other settings.

    #laravel #valet #lerd #php

  3. 🧰 More additions: a built-in SortDirection enum, __debugInfo() on enums, a unified stream error model with StreamException and 50+ error codes, and UriBuilder classes for the URI extension

    🛡️ Secure session defaults for new installs: session.use_strict_mode=1, cookie_httponly=1, cookie_samesite=Lax. #Laravel manages its own session cookies, so most apps are unaffected

    🌐 laravel-news.com/php-8-6

  4. Importing old data into a stricter MySQL server can fail on things like zero dates. Here's how to relax sql_mode for just the import session, without changing the server's configuration. #php #laravel masteringlaravel.io/daily/2026

  5. Laravel + PHP gains a batteries included package for ActivityPub support, with both draft-cavage and RFC 9421 HTTP Sig support and the ability to extend every aspect, with before() and after() hooks for easy custom processing.

    It's quite amazing.

    I'll be tagging a new release this week.

    #laravel #php #activitypub #pixelfed #loops

  6. Okay, laravel-activitypub is near ready to ship!

    I'll be testing it with shutter, a single user activitypub server for image sharing.

    #laravel #activitypub #Pixelfed #Loops

  7. Making real progress on laravel-activitypub, a batteries included ActivityPub package for laravel.

    This will replace federation logic in @pixelfed and @joinloops and make it really easy to implement AP in your own laravel apps!

    #laravel #activityPub

  8. From ad-hoc prompting to a real pipeline.

    At our July meetup in Bern, David Pacassi Torrico shared how he and his team built a set of commands, skills and automation for their Drupal projects — letting AI handle the repetitive work.

    Watch → youtube.com/watch?v=upJQUSkEDjE

    #Laravel #PHP #Drupal #WebDev

  9. 🔍 #LaravelMCP 1.0 introduces searchable tool catalogs: the tools/list payload stays the same size whether a server exposes 10 tools or 100. #Laravel #MCP #PHP #AI

    ⚠️ Every MCP tool pushes its name, description and full JSON Schema into the agent's context on every turn. Anthropic puts a 50+ tool setup at around 72,000 tokens upfront. With deferred loading and search, Opus 4 went from 49% to 74% accuracy on large tool libraries.

    🧵👇

  10. 🔍 #LaravelMCP 1.0 introduces searchable tool catalogs: the tools/list payload stays the same size whether a server exposes 10 tools or 100. #Laravel #MCP #PHP #AI

    ⚠️ Every MCP tool pushes its name, description and full JSON Schema into the agent's context on every turn. Anthropic puts a 50+ tool setup at around 72,000 tokens upfront. With deferred loading and search, Opus 4 went from 49% to 74% accuracy on large tool libraries.

    🧵👇

  11. 🔍 #LaravelMCP 1.0 introduces searchable tool catalogs: the tools/list payload stays the same size whether a server exposes 10 tools or 100. #Laravel #MCP #PHP #AI

    ⚠️ Every MCP tool pushes its name, description and full JSON Schema into the agent's context on every turn. Anthropic puts a 50+ tool setup at around 72,000 tokens upfront. With deferred loading and search, Opus 4 went from 49% to 74% accuracy on large tool libraries.

    🧵👇

  12. 🔍 #LaravelMCP 1.0 introduces searchable tool catalogs: the tools/list payload stays the same size whether a server exposes 10 tools or 100. #Laravel #MCP #PHP #AI

    ⚠️ Every MCP tool pushes its name, description and full JSON Schema into the agent's context on every turn. Anthropic puts a 50+ tool setup at around 72,000 tokens upfront. With deferred loading and search, Opus 4 went from 49% to 74% accuracy on large tool libraries.

    🧵👇

  13. 🔍 #LaravelMCP 1.0 introduces searchable tool catalogs: the tools/list payload stays the same size whether a server exposes 10 tools or 100. #Laravel #MCP #PHP #AI

    ⚠️ Every MCP tool pushes its name, description and full JSON Schema into the agent's context on every turn. Anthropic puts a 50+ tool setup at around 72,000 tokens upfront. With deferred loading and search, Opus 4 went from 49% to 74% accuracy on large tool libraries.

    🧵👇

  14. A queued job that manually builds an expensive service is painful to test. Let's see how to leverage Laravel's container to make this a lot nicer. #php #laravel masteringlaravel.io/daily/2026

  15. 150 запросов на один flush, и 4343 зелёных теста. Как я делал детектор N+1 и как он сам меня обманывал

    Один open-source тайм-трекер на Symfony имеет 4343 теста, и все они проходят. При этом каждое сохранение записи времени отправляет в базу три дополнительных SELECT запроса: ставку самой записи, ставку проекта и ставку активности. Если в одном flush() 50 записей, а столько строк показывает страница массового редактирования, только за ставками уходит 150 запросов. Тесты этот код покрывают, но ни один не падает, в них нет ни одной проверки проблем с запросами к базе данных. Для решения этой проблемы сделал инструмент, которого в конце августа ещё не существовало. Правда, ещё до проверок сторонних проектов на N+1, он успел несколько раз обмануть меня самого, и всегда одинаково, показывал зелёное там, где на самом деле не работал.

    habr.com/ru/articles/1082250/

    #phpunit #doctrine #laravel #n+1 #orm #ленивая_загрузка #queryguard

  16. 150 запросов на один flush, и 4343 зелёных теста. Как я делал детектор N+1 и как он сам меня обманывал

    Один open-source тайм-трекер на Symfony имеет 4343 теста, и все они проходят. При этом каждое сохранение записи времени отправляет в базу три дополнительных SELECT запроса: ставку самой записи, ставку проекта и ставку активности. Если в одном flush() 50 записей, а столько строк показывает страница массового редактирования, только за ставками уходит 150 запросов. Тесты этот код покрывают, но ни один не падает, в них нет ни одной проверки проблем с запросами к базе данных. Для решения этой проблемы сделал инструмент, которого в конце августа ещё не существовало. Правда, ещё до проверок сторонних проектов на N+1, он успел несколько раз обмануть меня самого, и всегда одинаково, показывал зелёное там, где на самом деле не работал.

    habr.com/ru/articles/1082250/

    #phpunit #doctrine #laravel #n+1 #orm #ленивая_загрузка #queryguard

  17. 150 запросов на один flush, и 4343 зелёных теста. Как я делал детектор N+1 и как он сам меня обманывал

    Один open-source тайм-трекер на Symfony имеет 4343 теста, и все они проходят. При этом каждое сохранение записи времени отправляет в базу три дополнительных SELECT запроса: ставку самой записи, ставку проекта и ставку активности. Если в одном flush() 50 записей, а столько строк показывает страница массового редактирования, только за ставками уходит 150 запросов. Тесты этот код покрывают, но ни один не падает, в них нет ни одной проверки проблем с запросами к базе данных. Для решения этой проблемы сделал инструмент, которого в конце августа ещё не существовало. Правда, ещё до проверок сторонних проектов на N+1, он успел несколько раз обмануть меня самого, и всегда одинаково, показывал зелёное там, где на самом деле не работал.

    habr.com/ru/articles/1082250/

    #phpunit #doctrine #laravel #n+1 #orm #ленивая_загрузка #queryguard

  18. Starting posting short clips from my #PHPxTokyo talk last week.
    I do not feel confident enough to post the full video for now. Maybe for a future talk i will do it.

    For now here is the first short:

    m.youtube.com/shorts/YfoLa83bn
    Ask an AI what the latest Laravel version is. It will say Laravel 12. Very confidently. It has no idea it is wrong.

    This is why your dependencies need health checks, not vibes.

    #Laravel #AI #Laravel12 #PHP #DevLife

  19. Starting posting short clips from my #PHPxTokyo talk last week.
    I do not feel confident enough to post the full video for now. Maybe for a future talk i will do it.

    For now here is the first short:

    m.youtube.com/shorts/YfoLa83bn
    Ask an AI what the latest Laravel version is. It will say Laravel 12. Very confidently. It has no idea it is wrong.

    This is why your dependencies need health checks, not vibes.

    #Laravel #AI #Laravel12 #PHP #DevLife

  20. Starting posting short clips from my #PHPxTokyo talk last week.
    I do not feel confident enough to post the full video for now. Maybe for a future talk i will do it.

    For now here is the first short:

    m.youtube.com/shorts/YfoLa83bn
    Ask an AI what the latest Laravel version is. It will say Laravel 12. Very confidently. It has no idea it is wrong.

    This is why your dependencies need health checks, not vibes.

    #Laravel #AI #Laravel12 #PHP #DevLife

  21. Starting posting short clips from my #PHPxTokyo talk last week.
    I do not feel confident enough to post the full video for now. Maybe for a future talk i will do it.

    For now here is the first short:

    m.youtube.com/shorts/YfoLa83bn
    Ask an AI what the latest Laravel version is. It will say Laravel 12. Very confidently. It has no idea it is wrong.

    This is why your dependencies need health checks, not vibes.

    #Laravel #AI #Laravel12 #PHP #DevLife

  22. Starting posting short clips from my #PHPxTokyo talk last week.
    I do not feel confident enough to post the full video for now. Maybe for a future talk i will do it.

    For now here is the first short:

    m.youtube.com/shorts/YfoLa83bn
    Ask an AI what the latest Laravel version is. It will say Laravel 12. Very confidently. It has no idea it is wrong.

    This is why your dependencies need health checks, not vibes.

    #Laravel #AI #Laravel12 #PHP #DevLife

  23. Anyone can commit code to GitHub under your name — no password needed, no permission asked.

    At our July meetup, Tobias Gasche showed us exactly how easy it is to impersonate another GitHub user, and why signing your Git commits is the fix.

    Watch → youtube.com/watch?v=-kiJb-jjiEw

    #Laravel #PHP #WebDev