home.social

#laravel — Public Fediverse posts

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

  1. Found that @gonedark created a better Mockery replacement for PHP.

    github.com/jasonmccreary/double

    My problem with this library is not that it's not stable, is the stance behind it. «I just have it 0.x until it gains adoption»

    What fucking logic is behind that? It's like saying I should drive a car once I can complete 24 Heures du Mans. LOL.

    #Programming #SoftwareDevelopment #WebDevelopment #WebDev #Coding #Code #PHP #Laravel #Symfony #Testing #LaravelShift

  2. When another site loads your built JS assets, Laravel never sees the request, so its CORS config can't help. Here's how to add the headers in Nginx for just those files, without slowing down everything else. #php #laravel masteringlaravel.io/daily/2026

  3. #TypeScript community (especially #Laravel-affine):

    I want to create a class, resembling Laravel factories in TypeScript

    class Factory<T> {
    protected model: Partial<T>

    constructor(model: Partial<T>) {
    this.model = { ...this.defaults, ...model }
    }

    // state setters

    make(): T { // <!-- How do I get this to be T instead of Partial<T> without `as? ?
    return this.model
    }
    }

    #amCoding #amProgramming #webDev #webDevelopment #dataTypes #FollowerPower #computerScience #typeTheory

  4. Migrated my website from Ghost to a custom Laravel build this week.

    Same content, full control over everything. Also switched from GitHub to Forgejo + CrowsCI. GitHub was getting expensive with multiple deploys a day for danielpetrica.com and laraplugins. In the age of AI coding, frequent deploys are the norm, not the exception.

    Verified SEO status with seo.danielpetrica.com before and after to make sure nothing broke.

    #Laravel #PHP #SelfHosted #DevOps #OpenSource

  5. #Laravel ma sporo narzędzi i "uprzyjemniaczy" dla developerów. O jednym z nich i konfiguracji tegoż można przeczytać w tym artykule.

    #PHP

    laravel-news.com/artisan-dev-c

  6. Когда 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

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

  8. 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:

  9. 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:

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

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

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

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

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

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

  16. 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:

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

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

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

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

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

  22. #TaylorOtwell transformed from hero to villain.

    On one hand, he just nuked the maintainment burden: no more triage, "how this works", and RTFM.

    On the other: use #AI for everything. It looks like an investor driven decision.

    I'm going to give him the benefit of the doubt. #Symfony is doing the same but for PRs instead.

    #Software #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #ArtificialIntelligence #VibeCoding #VibeCode #PHP #Laravel #GitHub #Git #VersionControl

  23. Odio el #SII, así que hice ésto.

    Cumple con las obligaciones legales, pero hay algunos detalles que cubrir. 33.000 líneas de código.

    github.com/Laragear/Dte

    Feliz si alguien quiere aportar o hacerlo mierda.

    #IRS #Chile #LatinAmerica #Coding #Code #Programming #Laravel #PHP #LaravelOctane #LaravelBoost #AI #AISkills #AIGuidelines #Financing #Finance #Tax #Taxes

  24. I hate #SII (the Chilean IRS), so I made this.

    Full legal compliance, but there are some rough edges here and there. 33K lines of code.

    github.com/Laragear/Dte

    Happy if chilean people can use this.

    #IRS #Chile #LatinAmerica #Coding #Code #Programming #Laravel #PHP #LaravelOctane #LaravelBoost #AI #AISkills #AIGuidelines #Financing #Finance #Tax #Taxes

  25. ⚙️ SSD-Powered #cPanel Web #Hosting – Up to 25x Faster
    ⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
    Built for Performance. Backed by Reliability. Ready to Scale.
    Developers, sysadmins, and power users—we built this for you. Our SSD-powered cPanel web hosting ...
    Continued 👉 blog.radwebhosting.com/ssd-pow #webdisk #cloudlinux #litespeed #softaculous #gitversioncontrol #joomla #letsencrypt #webhosting #csf #sshaccess #phppgadmin #phpmyadmin #mariadb #laravel #postgresql #wpcli #modsecurity #ftp

  26. My "free stack" for Laragear packages from now onwards, until a better solution is done:

    1. Sell in Gumroad
    2. Zapier to KeyGen.sh to create the license
    3. Zapier an email with the license
    4. Dev uses KeyGen to download the package

    This is the only way that allows me to sell and receive payouts in my country (Chile).

    #PHP #Programming #Laravel #Laragear #Composer #ComposerPHP #Gumroad #Zapier #KeyGenSH #KeyGen #SoftwareDevelopment #WebDevelopment #WebDev

  27. Laravel + TrueAsync: настоящая конкурентность без Swoole

    В 2025 году в PHP отклонили RFC про нативные корутины. Автор не сдался и продолжил работу - так появился TrueAsync, расширение которое добавляет в PHP настоящую асинхронность без изменений в коде приложения. Я решил запустить на этом Laravel. Фреймворк проектировался под FPM-модель и совершенно не готов к тому что один воркер будет обрабатывать тысячи запросов параллельно. Как это починить без клонирования контейнера, почему PDO Pool даёт настоящую конкурентность которой нет в Swoole, и что получилось в бенчмарке против Octane.

    habr.com/ru/articles/1024762/

    #PHP #laravel #async #корутины #frankenphp #pdo #benchmark

  28. Building an MVP doesn't mean writing bad code. It means writing focused code.
    I help startups ship solid MVPs in weeks, complete with tests and CI/CD.
    No technical debt from Day 1.
    coz.jp/Myj5BM
    #Freelance #Laravel #Bussiness #Startup #PHP

  29. Non-technical founders often burn 6 months hiring the wrong team.
    As a Fractional CTO, I help you:
    Choose the right stack (spoiler: it's probably Laravel)
    Hire the right devs
    Set up processes so I can leave you independent.
    Building an MVP? Start with a solid foundation.
    👇 danielpetrica.com/work-with-me/
    #Freelance #Laravel #Bussiness #Startup #PHP