Type-safe data flow: Laravel to React with Inertia 2.0
https://laravelmagazine.com/type-safe-data-flow-laravel-to-react-with-inertia-20
https://redd.it/1pmb825
@r_php
https://laravelmagazine.com/type-safe-data-flow-laravel-to-react-with-inertia-20
https://redd.it/1pmb825
@r_php
Type-safe data flow: Laravel to React with Inertia 2.0
Stop me if you've heard this before: you change a property name in your Laravel model, push to production, and suddenly your React components are trying...
Weekly /r/Laravel Help Thread
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1pmkh1s
@r_php
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1pmkh1s
@r_php
Laravel
Installation - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
What's your go-to approach for structuring large Laravel projects?
Hey fellow Laravel devs! 👋
I’ve been working on some fairly large projects lately and I keep running into the same challenge:
“How do I structure my Laravel apps so that they stay maintainable as they grow?”
Some things I’ve experimented with:
- Modular folder structure for features
- Service Providers for reusable logic
- Domain-driven design patterns in Laravel
I’d love to hear from you:
- How do you organize large Laravel projects?
- Any tricks or best practices for keeping code clean and scalable?
- Packages or tools you swear by for project organization?
Sharing some real-life examples would be amazing!
Let’s make it easier for the community to handle big Laravel apps.
Thanks in advance for your insights! 🙌
https://redd.it/1pmnfxh
@r_php
Hey fellow Laravel devs! 👋
I’ve been working on some fairly large projects lately and I keep running into the same challenge:
“How do I structure my Laravel apps so that they stay maintainable as they grow?”
Some things I’ve experimented with:
- Modular folder structure for features
- Service Providers for reusable logic
- Domain-driven design patterns in Laravel
I’d love to hear from you:
- How do you organize large Laravel projects?
- Any tricks or best practices for keeping code clean and scalable?
- Packages or tools you swear by for project organization?
Sharing some real-life examples would be amazing!
Let’s make it easier for the community to handle big Laravel apps.
Thanks in advance for your insights! 🙌
https://redd.it/1pmnfxh
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Pulse - Monitor Your Application's Performance in Production
https://youtu.be/V40uwtx_usM
https://redd.it/1pmpd15
@r_php
https://youtu.be/V40uwtx_usM
https://redd.it/1pmpd15
@r_php
YouTube
Pulse - Monitor Your Application's Performance in Production
Laravel Pulse provides real-time insights into your application's performance, allowing you to monitor requests, exceptions, server metrics and more even in production.
➡️ Learn more
https://laravel.com/docs/12.x/pulse
➡️ Visit Repository
https://githu…
➡️ Learn more
https://laravel.com/docs/12.x/pulse
➡️ Visit Repository
https://githu…
Job Batching Internals: How Laravel tracks state and handles partial failures
https://queuewatch.io/blog/job-batching-internals-how-laravel-tracks-state-handles-partial-failures-and-the-undocumented-limitations
https://redd.it/1pmrfpz
@r_php
https://queuewatch.io/blog/job-batching-internals-how-laravel-tracks-state-handles-partial-failures-and-the-undocumented-limitations
https://redd.it/1pmrfpz
@r_php
Queuewatch
Job Batching Internals: How Laravel tracks state, handles partial failures, and the undocumented limitations - Queuewatch
Laravel's job batching feature, introduced in version 8, allows you to dispatch a collection of jobs and execute callbacks when all jobs complete. The API is elegant Bus::batch() accepts an array of jobs and returns a fluent builder. But beneath this simplicity…
Laravel Workflows as MCP Tools for AI Clients
https://laravel-workflow.com/blog/laravel-workflows-as-mcp-tools-for-ai-clients/
https://redd.it/1pmwnmf
@r_php
https://laravel-workflow.com/blog/laravel-workflows-as-mcp-tools-for-ai-clients/
https://redd.it/1pmwnmf
@r_php
Laravel-Workflow
Laravel Workflows as MCP Tools for AI Clients | Laravel Workflow
The Model Context Protocol (MCP) is rapidly becoming the standard way for AI assistants like Claude, ChatGPT, and GitHub Copilot to interact with external tools and services. With Laravel MCP, you can expose your Laravel Workflow processes as callable tools…
Weekly Ask Anything Thread
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1pmy6u1
@r_php
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1pmy6u1
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Weekly help thread
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1pn12c6
@r_php
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1pn12c6
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Static And Not Static Method At The Same Time
https://php-tips.readthedocs.io/en/latest/tips/static_and_not_static.html
https://redd.it/1pn46db
@r_php
https://php-tips.readthedocs.io/en/latest/tips/static_and_not_static.html
https://redd.it/1pn46db
@r_php
php-tips.readthedocs.io
Static And Not Static Method
Static And Not Static Method: Could PHP have both a static and a non-static method, with the same name
Curious: How does your team test feature branches before merging to dev/staging?
I'm working on a Laravel project with a separate React frontend and we've been struggling with how to let the team (and clients) test features before they hit staging.
Right now we either deploy to a shared staging server (messy, conflicts) or run everything locally to demo (painful for non-technical stakeholders).
Curious how other teams handle this:
* Do you spin up environments per branch/PR?
* If yes, what's your setup? (Docker, k8s, some service?)
* If no, what do you do instead?
Especially interested if you're dealing with microservices or separate frontend/backend repos.
https://redd.it/1pn5bjj
@r_php
I'm working on a Laravel project with a separate React frontend and we've been struggling with how to let the team (and clients) test features before they hit staging.
Right now we either deploy to a shared staging server (messy, conflicts) or run everything locally to demo (painful for non-technical stakeholders).
Curious how other teams handle this:
* Do you spin up environments per branch/PR?
* If yes, what's your setup? (Docker, k8s, some service?)
* If no, what do you do instead?
Especially interested if you're dealing with microservices or separate frontend/backend repos.
https://redd.it/1pn5bjj
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
I built a Laravel installer because shared hosting setup is still painfu
Laravel is great, but the first 30 minutes still suck — especially on shared hosting.
.env issues, DB config errors, missing extensions, wrong permissions…
I kept seeing the same problems again and again.
So I built an open-source Laravel installer that:
\- checks server requirements
\- validates DB credentials
\- guides setup through a simple installer UI
\- works without assuming full CLI access
It’s still early and I’m looking for real feedback more than stars.
Repo: https://github.com/ajithjojo/getecz-laravel-installer
What would you change or add?
https://redd.it/1pnf6hx
@r_php
Laravel is great, but the first 30 minutes still suck — especially on shared hosting.
.env issues, DB config errors, missing extensions, wrong permissions…
I kept seeing the same problems again and again.
So I built an open-source Laravel installer that:
\- checks server requirements
\- validates DB credentials
\- guides setup through a simple installer UI
\- works without assuming full CLI access
It’s still early and I’m looking for real feedback more than stars.
Repo: https://github.com/ajithjojo/getecz-laravel-installer
What would you change or add?
https://redd.it/1pnf6hx
@r_php
GitHub
GitHub - ajithjojo/getecz-laravel-installer: A lightweight, Laravel 12 compatible installer wizard designed for self-hosted Laravel…
A lightweight, Laravel 12 compatible installer wizard designed for self-hosted Laravel applications. - ajithjojo/getecz-laravel-installer
Socialite - Effortless Social Authentication
https://youtu.be/JKOJpUi1gD0
https://redd.it/1pnj4ij
@r_php
https://youtu.be/JKOJpUi1gD0
https://redd.it/1pnj4ij
@r_php
YouTube
Socialite - Social logins in minutes
Laravel Socialite makes it simple to authenticate users via their favorite social platforms like GitHub, Google, and Facebook, streamlining the login process and enhancing user experience.
➡️ Learn more
https://laravel.com/docs/socialite
➡️ Visit Repository…
➡️ Learn more
https://laravel.com/docs/socialite
➡️ Visit Repository…
Career Changer Strategy: Focusing on Backend/Logic & using AI for UI/Design. Is this a future-proof path for freelancing?
Hi everyone,
I am currently a career changer ("Umschüler" in Germany) doing my internship at an E-Commerce agency. I'm building my roadmap for a future mix of part-time employment and freelancing.
I realized I love the logical side of things (Databases, Backend, Docker, JS-Functionality) but I hate "pixel-pushing" and trying to pick the perfect colors
.
My Plan:
The Stack: HTML, CSS, JS, PHP, MySQL, Docker. (I plan to learn React/Frameworks later, but want to master the basics first).
The Workflow: I use AI to handle the "Design" part (CSS, Layouts, UI components). I understand the generated code (Grid, Flexbox, Responsive), so I can debug it, but I don't want to study design theory.
The Product: I want to move away from "Brochure Websites" (high competition, low pay) and focus on building Web Apps, PWAs, and B2B Tools for small/mid-sized businesses. I feel like solving actual business problems (saving time/money) pays better than just "looking good".
My Questions for you:
Is this a solid Freelance strategy? Can I market myself as a Fullstack Dev if I rely on AI for the visual heavy lifting, while I ensure the Logic/Security/Backend is rock solid?
PHP vs Node: In the German market, I see a lot of demand for PHP (Shopware, custom tools) in the SMB sector. Is sticking with PHP + Docker a safe bet for stable income, or is the pressure to switch to Node.js unavoidable?
Future Proofing: Do you agree that "Logic/Problem Solving" is harder to replace by AI than "CSS/Design", making this path safer long-term?
Thanks for your honest feedback!
https://redd.it/1pnuudg
@r_php
Hi everyone,
I am currently a career changer ("Umschüler" in Germany) doing my internship at an E-Commerce agency. I'm building my roadmap for a future mix of part-time employment and freelancing.
I realized I love the logical side of things (Databases, Backend, Docker, JS-Functionality) but I hate "pixel-pushing" and trying to pick the perfect colors
.
My Plan:
The Stack: HTML, CSS, JS, PHP, MySQL, Docker. (I plan to learn React/Frameworks later, but want to master the basics first).
The Workflow: I use AI to handle the "Design" part (CSS, Layouts, UI components). I understand the generated code (Grid, Flexbox, Responsive), so I can debug it, but I don't want to study design theory.
The Product: I want to move away from "Brochure Websites" (high competition, low pay) and focus on building Web Apps, PWAs, and B2B Tools for small/mid-sized businesses. I feel like solving actual business problems (saving time/money) pays better than just "looking good".
My Questions for you:
Is this a solid Freelance strategy? Can I market myself as a Fullstack Dev if I rely on AI for the visual heavy lifting, while I ensure the Logic/Security/Backend is rock solid?
PHP vs Node: In the German market, I see a lot of demand for PHP (Shopware, custom tools) in the SMB sector. Is sticking with PHP + Docker a safe bet for stable income, or is the pressure to switch to Node.js unavoidable?
Future Proofing: Do you agree that "Logic/Problem Solving" is harder to replace by AI than "CSS/Design", making this path safer long-term?
Thanks for your honest feedback!
https://redd.it/1pnuudg
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
New PostgreSQL Client/Parser/QueryBuilder library
Hey everyone!
I would like to share our recent addition to Flow PHP framework, a brand new PostgreSQL library based on ext-pgsql and pganalyze/libpg_query
Doctrine DBAL is awesome! But since it's database engine agnostic, it's missing some nice features like for example, query builder is not covering all db specific features like CTE.
This makes us to either keep SQL queries as plain strings, or make some tradeoffs while using Query Builder, flow-php/postgresql covers this gap providing probably the most advanced query builder in PHP.
Our fluent interfaces are going to guide you (with support from your IDE) through building queries.
But it's not all, thanks to libpg_query we were able to create a postgresql parser that covers 100% of syntax since it's literally extracted from the server code 🤯 (full support up to PostgreSQL 17)
Why do we need a parser?
\- query analysis (security but also static analysis)
\- we can programmatically access/modify queries - like for example add advanced pagination
And if non of this sounds appealing, thanks to parser and deparser flow-php/postgresql comes also with query formatter - just like php-cs-fixer or mago formatter but for sql queries!
On top of that we also created Client interface with a default implementation based on ext-pgsql that comes with a support for Row Mappers (an interface). Our plan is to provide bridges for libraries like cuyz/valinor or crell/serde that will let us make queries results strictly typed through:
$client->fetchInto(User::class, "SELECT * FROM users WHERE id = $2, [10001\]);
You can find library documentation here: https://flow-php.com/documentation/components/libs/postgresql/
It's still early development, not battle tested yet, feedback/bug reports/ideas are greatly appreciated and welcome 😊
https://redd.it/1po87go
@r_php
Hey everyone!
I would like to share our recent addition to Flow PHP framework, a brand new PostgreSQL library based on ext-pgsql and pganalyze/libpg_query
Doctrine DBAL is awesome! But since it's database engine agnostic, it's missing some nice features like for example, query builder is not covering all db specific features like CTE.
This makes us to either keep SQL queries as plain strings, or make some tradeoffs while using Query Builder, flow-php/postgresql covers this gap providing probably the most advanced query builder in PHP.
Our fluent interfaces are going to guide you (with support from your IDE) through building queries.
But it's not all, thanks to libpg_query we were able to create a postgresql parser that covers 100% of syntax since it's literally extracted from the server code 🤯 (full support up to PostgreSQL 17)
Why do we need a parser?
\- query analysis (security but also static analysis)
\- we can programmatically access/modify queries - like for example add advanced pagination
And if non of this sounds appealing, thanks to parser and deparser flow-php/postgresql comes also with query formatter - just like php-cs-fixer or mago formatter but for sql queries!
On top of that we also created Client interface with a default implementation based on ext-pgsql that comes with a support for Row Mappers (an interface). Our plan is to provide bridges for libraries like cuyz/valinor or crell/serde that will let us make queries results strictly typed through:
$client->fetchInto(User::class, "SELECT * FROM users WHERE id = $2, [10001\]);
You can find library documentation here: https://flow-php.com/documentation/components/libs/postgresql/
It's still early development, not battle tested yet, feedback/bug reports/ideas are greatly appreciated and welcome 😊
https://redd.it/1po87go
@r_php
Flow-Php
Documentation - Flow PHP - Data Processing Framework
WSL2 development environment for PHP projects with little to no fuss
PHP is great, but setting up a truly functional development environment is a pain. There are so many moving parts I sometimes feel I'm wasting more time on the environment than on coding.
I remember using XAMPP back in the day - when it was still the go-to solution. Somebody should tell them that PHP 8.3 was released. And PHP 8.4. Even 8.5. Get with the program...
So I started reading about a WSL development environment which seems to hit the right marks:
An environment that matches the production one closely. This prevents surprises when I release my code.
Full freedom to set up what I need, when I need it. Sometimes too much freedom.
A virtual machine sandbox that is separate from my main system. I don't have to worry about stuff escaping the virtual machine and deleting my games... I mean my totally-legit, work-related stuff.
I can pick my preferred Linux distribution, which makes it a breeze to change versions for each component. No more uninstalls and reinstalls every time I'm switching projects.
But that freedom thing I mentioned above is the one that worries me. A WSL recipe with Ansible provides the fix. It sets everything up: PHP, Apache, MariaDB, Git, Composer, PhpMyAdmin. Then I can start coding, maybe add some vhosts along the way.
The big part of the setup is covered in this article.
What do you guys use for your development envoronments?
https://redd.it/1povij7
@r_php
PHP is great, but setting up a truly functional development environment is a pain. There are so many moving parts I sometimes feel I'm wasting more time on the environment than on coding.
I remember using XAMPP back in the day - when it was still the go-to solution. Somebody should tell them that PHP 8.3 was released. And PHP 8.4. Even 8.5. Get with the program...
So I started reading about a WSL development environment which seems to hit the right marks:
An environment that matches the production one closely. This prevents surprises when I release my code.
Full freedom to set up what I need, when I need it. Sometimes too much freedom.
A virtual machine sandbox that is separate from my main system. I don't have to worry about stuff escaping the virtual machine and deleting my games... I mean my totally-legit, work-related stuff.
I can pick my preferred Linux distribution, which makes it a breeze to change versions for each component. No more uninstalls and reinstalls every time I'm switching projects.
But that freedom thing I mentioned above is the one that worries me. A WSL recipe with Ansible provides the fix. It sets everything up: PHP, Apache, MariaDB, Git, Composer, PhpMyAdmin. Then I can start coding, maybe add some vhosts along the way.
The big part of the setup is covered in this article.
What do you guys use for your development envoronments?
https://redd.it/1povij7
@r_php
docs.dotkernel.org
Setup Packages - development - Dotkernel Documentation
Development Environment using AlmaLinux
How we lit up 1200 screens in real time at SymfonyCon
https://symfony.com/blog/how-we-lit-up-1200-screens-in-real-time-at-symfonycon?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1pox1th
@r_php
https://symfony.com/blog/how-we-lit-up-1200-screens-in-real-time-at-symfonycon?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1pox1th
@r_php
Symfony
How we lit up 1200 screens in real time at SymfonyCon (Symfony Blog)
At SymfonyCon 2025, we wanted to celebrate Symfony’s 20th anniversary with a live, collective experience: 1200 developers holding up their phones while we lit up their screens in real time from the …
Free Source Code: part 1
https://youtu.be/4EuaQrDcSFk?si=CffI-ztoW9OfKSgv
https://redd.it/1pp1nu0
@r_php
https://youtu.be/4EuaQrDcSFk?si=CffI-ztoW9OfKSgv
https://redd.it/1pp1nu0
@r_php
My Message to Laravel TEAM
Concern About Laravel’s Direction & Request for Stable, Bootstrap-Friendly Alternatives
My Message to Laravel TEAM
I’ve been a passionate Laravel developer for nearly a decade. Laravel’s early alignment with Bootstrap via
However, with recent shifts—especially the strong push toward Tailwind CSS, Inertia, Livewire, and ecosystem monetization (e.g., Forge, Vapor, paid packages)—I’m finding it increasingly difficult to stay aligned with Laravel’s direction.
As someone who values simplicity, stability, and proven stacks (PHP + Blade + Bootstrap), I feel the framework is drifting away from developers like me—the ones who helped grow Laravel organically in its early years—toward a more opinionated, JavaScript-heavy, and commercialized approach.
The deprecation of
I’m now seriously considering alternatives:
CodeIgniter 4 is tempting (I loved v3), but I’m unsure if its ecosystem is mature enough for larger applications today.
Are there other stable, well-documented PHP frameworks that prioritize convention over configuration, support clean MVC, and make it easy to use Blade (or plain PHP) with Bootstrap—without forcing frontend tooling or paid add-ons?
I’m not resistant to change—but I am resistant to churn without clear, inclusive justification. Laravel used to excel at balancing innovation with stability. I hope it finds that balance again.
Thank you for listening.
https://redd.it/1pp0y1n
@r_php
Concern About Laravel’s Direction & Request for Stable, Bootstrap-Friendly Alternatives
My Message to Laravel TEAM
I’ve been a passionate Laravel developer for nearly a decade. Laravel’s early alignment with Bootstrap via
laravel/ui played a huge role in my adoption—and advocacy—of the framework. Over the years, I’ve shipped numerous projects and actively recommended Laravel to peers and teams.However, with recent shifts—especially the strong push toward Tailwind CSS, Inertia, Livewire, and ecosystem monetization (e.g., Forge, Vapor, paid packages)—I’m finding it increasingly difficult to stay aligned with Laravel’s direction.
As someone who values simplicity, stability, and proven stacks (PHP + Blade + Bootstrap), I feel the framework is drifting away from developers like me—the ones who helped grow Laravel organically in its early years—toward a more opinionated, JavaScript-heavy, and commercialized approach.
The deprecation of
laravel/ui and the focus on Breeze/Breeze + Inertia have made starting new projects with my preferred stack unnecessarily complex. Laravel 12, in particular, feels like a departure from the philosophy and ergonomics I fell in love with in Laravel 5–11.I’m now seriously considering alternatives:
CodeIgniter 4 is tempting (I loved v3), but I’m unsure if its ecosystem is mature enough for larger applications today.
Are there other stable, well-documented PHP frameworks that prioritize convention over configuration, support clean MVC, and make it easy to use Blade (or plain PHP) with Bootstrap—without forcing frontend tooling or paid add-ons?
I’m not resistant to change—but I am resistant to churn without clear, inclusive justification. Laravel used to excel at balancing innovation with stability. I hope it finds that balance again.
Thank you for listening.
https://redd.it/1pp0y1n
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community