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/1j1wz97
@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/1j1wz97
@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.
🚀 Introducing Keysmith Vue – Laravel 12 + Vue Starterkit API Token Management 🔑
Hey everyone! 👋
I've just released Keysmith Vue v1.0.1, a Laravel 12 Vue Starterkit package that simplifies API token management using Laravel Sanctum. It provides pre-built Vue components for generating, managing, and revoking API keys— based on the Laravel breeze implementation 🎉
🔑 Key Features:
✅ API Token Generation & Management with Laravel Sanctum
✅ Pre-built Vue 3 Components
✅ Flexible Installation – Choose between Page or Settings templates
✅ Customizable Permissions via
✅ Secure Light and Dark Modes
I plan on releasing React and Livewire versions in the near future
You can take a look at the package and documentation here https://github.com/Blaspsoft/keysmith-vue
https://redd.it/1j21omj
@r_php
Hey everyone! 👋
I've just released Keysmith Vue v1.0.1, a Laravel 12 Vue Starterkit package that simplifies API token management using Laravel Sanctum. It provides pre-built Vue components for generating, managing, and revoking API keys— based on the Laravel breeze implementation 🎉
🔑 Key Features:
✅ API Token Generation & Management with Laravel Sanctum
✅ Pre-built Vue 3 Components
✅ Flexible Installation – Choose between Page or Settings templates
✅ Customizable Permissions via
config/keysmith.php ✅ Secure Light and Dark Modes
I plan on releasing React and Livewire versions in the near future
You can take a look at the package and documentation here https://github.com/Blaspsoft/keysmith-vue
https://redd.it/1j21omj
@r_php
GitHub
GitHub - Blaspsoft/keysmith-vue: Keysmith Vue is a Laravel 12 + Vue 3 package for managing API tokens with Laravel Sanctum. It…
Keysmith Vue is a Laravel 12 + Vue 3 package for managing API tokens with Laravel Sanctum. It provides pre-built Vue components for generating, viewing, and revoking API keys, offering a seamless a...
Reminder: if you prefer to develop on Homestead, it's still maintained as a fork!
Some people don't like the new development solutions offered by Laravel, such as Herd (which, let's not forget, it's not an official Laravel product).
Luckily, the good old Laravel Homestead is still maintained by the original author, just under a new fork.
Switching is easy, as the developer says:
>You should be able to destroy your laravel/homestead VM, copy your
GitHub repo: https://github.com/svpernova09/homestead
If you, like me, prefer to develop on a Homestead machine, show your support to the developer and don't forget to star the repo!
https://redd.it/1j21sbw
@r_php
Some people don't like the new development solutions offered by Laravel, such as Herd (which, let's not forget, it's not an official Laravel product).
Luckily, the good old Laravel Homestead is still maintained by the original author, just under a new fork.
Switching is easy, as the developer says:
>You should be able to destroy your laravel/homestead VM, copy your
Homestead.yaml into the forked repo, and spin up a fresh instance from there. If not please come back and open an issue and let me know what went wrong.GitHub repo: https://github.com/svpernova09/homestead
If you, like me, prefer to develop on a Homestead machine, show your support to the developer and don't forget to star the repo!
https://redd.it/1j21sbw
@r_php
X (formerly Twitter)
Taylor Otwell ☁️ 🦹 (@taylorotwell) on X
@DaBourz I do not manage Herd. That is a BeyondCode product.
Interface typehinting on phpstan
I have a question regarding interface type hinting on strict mode. I have an interface that several classes implements and each class return different types and I'm forced to make it mixed to make phpstan happy:
Interface:
How do I go about explicitly typing return type of the implementing classes while having generalized return type to my interface? Or should I just get rid of the interface itself and have more control to the specific classes that implement the method?
https://redd.it/1j27osl
@r_php
I have a question regarding interface type hinting on strict mode. I have an interface that several classes implements and each class return different types and I'm forced to make it mixed to make phpstan happy:
Interface:
/*** Get the wrapper content.** @ return array<mixed, mixed> The content.*/public function getContent(): array;How do I go about explicitly typing return type of the implementing classes while having generalized return type to my interface? Or should I just get rid of the interface itself and have more control to the specific classes that implement the method?
https://redd.it/1j27osl
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
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/1j2aaaa
@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/1j2aaaa
@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/1j2cwpc
@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/1j2cwpc
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Did they add breeze back to laravel installer? or does my laravel installer have a bug?
I have decided to try laravel 12. So I updated the laravel/installer to latest version 5.13.0. I run laravel new command and I see same prompts like in laravel 11. Asked me if I want to use breeze or jetstream or none. Then which breeze stack etc.
I do not see the new prompt screens shown on documentation.
After installing and running npm install. I can visit the default breeze react starter site without any issue. Laravel v12, inertia v2, react v18. Not react v19, no shadcn.
Anyone having similar issue?
I even removed and installed laravel/installer package just to be sure.
https://redd.it/1j2dttp
@r_php
I have decided to try laravel 12. So I updated the laravel/installer to latest version 5.13.0. I run laravel new command and I see same prompts like in laravel 11. Asked me if I want to use breeze or jetstream or none. Then which breeze stack etc.
I do not see the new prompt screens shown on documentation.
After installing and running npm install. I can visit the default breeze react starter site without any issue. Laravel v12, inertia v2, react v18. Not react v19, no shadcn.
Anyone having similar issue?
I even removed and installed laravel/installer package just to be sure.
https://redd.it/1j2dttp
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
My Laravel Packages
Hi everyone. I have created 2 packages for Laravel that may be useful to some of you.
1. Laravel Livewire CRUD
This package provides a comprehensive solution for CRUD operations within your Laravel applications, offering a streamlined and reusable approach for managing data. Whether you're working with Laravel controllers or Livewire components, this package allows you to:
Simplify common CRUD operations (create, read, update, delete) by abstracting and consolidating logic and reducing boilerplate code.
Enhance productivity by providing out-of-the-box methods for storing, updating, and deleting records.
Integrate seamlessly with both Laravel and Livewire, making it easy to use in traditional controllers or real-time components.
Ensure consistency across your application with standardized CRUD methods for various models.
Support bulk actions, enabling efficient mass deletion or updates of records.
Reduce development time by leveraging reusable methods for model interactions, validation and error handling.
https://github.com/milenmk/laravel-livewire-crud
2. Laravel locations
Add Countries, Cities, Areas, Languages and Currencies models to your Laravel application
https://github.com/milenmk/laravel-locations
https://redd.it/1j2ej86
@r_php
Hi everyone. I have created 2 packages for Laravel that may be useful to some of you.
1. Laravel Livewire CRUD
This package provides a comprehensive solution for CRUD operations within your Laravel applications, offering a streamlined and reusable approach for managing data. Whether you're working with Laravel controllers or Livewire components, this package allows you to:
Simplify common CRUD operations (create, read, update, delete) by abstracting and consolidating logic and reducing boilerplate code.
Enhance productivity by providing out-of-the-box methods for storing, updating, and deleting records.
Integrate seamlessly with both Laravel and Livewire, making it easy to use in traditional controllers or real-time components.
Ensure consistency across your application with standardized CRUD methods for various models.
Support bulk actions, enabling efficient mass deletion or updates of records.
Reduce development time by leveraging reusable methods for model interactions, validation and error handling.
https://github.com/milenmk/laravel-livewire-crud
2. Laravel locations
Add Countries, Cities, Areas, Languages and Currencies models to your Laravel application
https://github.com/milenmk/laravel-locations
https://redd.it/1j2ej86
@r_php
GitHub
GitHub - milenmk/laravel-livewire-crud: CRUD class for Laravel Livewire components
CRUD class for Laravel Livewire components. Contribute to milenmk/laravel-livewire-crud development by creating an account on GitHub.
Bugsnag alternative for local installation
I’m looking for an alternative for bugsnag for local installation. I hate ELK stack, and I couldn’t connect it to all of the apps properly. It is such a headache. I’m looking for something similar to bugsnag where I composer require the package and voila. And it has to be on premise
https://redd.it/1j2eg1g
@r_php
I’m looking for an alternative for bugsnag for local installation. I hate ELK stack, and I couldn’t connect it to all of the apps properly. It is such a headache. I’m looking for something similar to bugsnag where I composer require the package and voila. And it has to be on premise
https://redd.it/1j2eg1g
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
⚡️ Laravel Livewire Starter Kit - Deep Dive!
https://youtu.be/MVwBj42xidc
https://redd.it/1j2ilm1
@r_php
https://youtu.be/MVwBj42xidc
https://redd.it/1j2ilm1
@r_php
YouTube
Laravel + Livewire: First Look at the New Official Starter Kit
Dive into Laravel's new Livewire Starter Kit! Discover how it simplifies dynamic frontend development for PHP lovers. Comment and share your thoughts!
Check out the new starter kits! https://laravel.com/starter-kits
00:00 Introduction
02:08 Starter Kit…
Check out the new starter kits! https://laravel.com/starter-kits
00:00 Introduction
02:08 Starter Kit…
How do you discover new/changed features in the framework?
I think it's great that Laravel is focusing on attracting new developers. And the documentation \*is\* pretty good. In fact I think it's worth reading from start to finish at least once every couple of years. But my question is this: How am I supposed to stay informed about new or changed framework features after that? Here are some comments/observations in no particular order. Because it's definitely \*not\* a rant /s.
* The upgrade notes for new major versions only tell you about breaking changes, and most new additions aren't breaking. That's how it should be. It just means you can't "Just read the upgrade notes" to get an overview of what has changed.
* New features are usually including in the weekly releases, which \*do\* have something that resembles release notes, but it's just an auto generated list of commit messages that usually don't explain a whole lot about what they actually do. And the lack of conventional commit messages make it harder to find what's relevant. I'm not arguing that it should be beautiful prose, and I don't mind diving into the source to see the details - I just don't want to review the entire diff every week because it's impossible to spot which commits are relevant.
* I browse Laravel News at least once a week. IMO this is probably the best source of information about new features for people like me who don't use twitter/mastodon/bluesky/whatever people are using this week. But it's kind of hit or miss. And their community "Links" section don't seem to be moderated at all. The [What's New in Laravel 12 : Latest Features and Updates](https://www.bacancytechnology.com/blog/laravel-12-features-updates) blog post looks like what I need (it even has a star, whatever that means), but it's just AI hallucinations and word salad from start to finish. About what you'd expect from a Google search, but this is supposedly the "official" Laravel news site (check the "News" footer link on laravel.com).
I hope some of you can enlighten me. Especially if it doesn't involve "just follow these 25 people on these 4 social media sites".
https://redd.it/1j2k7sc
@r_php
I think it's great that Laravel is focusing on attracting new developers. And the documentation \*is\* pretty good. In fact I think it's worth reading from start to finish at least once every couple of years. But my question is this: How am I supposed to stay informed about new or changed framework features after that? Here are some comments/observations in no particular order. Because it's definitely \*not\* a rant /s.
* The upgrade notes for new major versions only tell you about breaking changes, and most new additions aren't breaking. That's how it should be. It just means you can't "Just read the upgrade notes" to get an overview of what has changed.
* New features are usually including in the weekly releases, which \*do\* have something that resembles release notes, but it's just an auto generated list of commit messages that usually don't explain a whole lot about what they actually do. And the lack of conventional commit messages make it harder to find what's relevant. I'm not arguing that it should be beautiful prose, and I don't mind diving into the source to see the details - I just don't want to review the entire diff every week because it's impossible to spot which commits are relevant.
* I browse Laravel News at least once a week. IMO this is probably the best source of information about new features for people like me who don't use twitter/mastodon/bluesky/whatever people are using this week. But it's kind of hit or miss. And their community "Links" section don't seem to be moderated at all. The [What's New in Laravel 12 : Latest Features and Updates](https://www.bacancytechnology.com/blog/laravel-12-features-updates) blog post looks like what I need (it even has a star, whatever that means), but it's just AI hallucinations and word salad from start to finish. About what you'd expect from a Google search, but this is supposedly the "official" Laravel news site (check the "News" footer link on laravel.com).
I hope some of you can enlighten me. Especially if it doesn't involve "just follow these 25 people on these 4 social media sites".
https://redd.it/1j2k7sc
@r_php
IT Blog | Mobile App Development India | Offshore Web Development - Bacancytechnology.com
Laravel 12 - New Features And Latest Updates
Explore the latest features and updates of Laravel 12. Stay ahead with improved performance upgrades, security enhancements, real-time improvements, and more.
Xdebug Helper Chrome Extension alternative?
The recent Chrome update that prevents things like uBlockOrigin from working also seems to have taken out the old Xdebug Helper extension as well. I've never really thought about how else to approach activating Xdebug from the browser, other than [annoyingly\] having to append the full query param string whenever I want to use it. Is there some alternative I'm not thinking of? There's a handful of Chrome extensions that purport to do the same as the original that seem to be active still, but very few installs and reviews, so I'm iffy on trusting those.
How are you using Xdebug from the browser?
https://redd.it/1j2jp63
@r_php
The recent Chrome update that prevents things like uBlockOrigin from working also seems to have taken out the old Xdebug Helper extension as well. I've never really thought about how else to approach activating Xdebug from the browser, other than [annoyingly\] having to append the full query param string whenever I want to use it. Is there some alternative I'm not thinking of? There's a handful of Chrome extensions that purport to do the same as the original that seem to be active still, but very few installs and reviews, so I'm iffy on trusting those.
How are you using Xdebug from the browser?
https://redd.it/1j2jp63
@r_php
Google
Xdebug helper - Chrome Web Store
Easy debugging, profiling and tracing extension for Xdebug
SymfonyLive Berlin 2025: SEAL: Dive into the sea of search engines
https://symfony.com/blog/symfonylive-berlin-2025-seal-dive-into-the-sea-of-search-engines?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j2kjas
@r_php
https://symfony.com/blog/symfonylive-berlin-2025-seal-dive-into-the-sea-of-search-engines?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j2kjas
@r_php
Symfony
SymfonyLive Berlin 2025: SEAL: Dive into the sea of search engines (Symfony Blog)
Demystify search engines with SEAL ! Discover with Alexander Schranz how this Search Engine Abstraction Layer simplifies integration, unifies APIs, and connects Symfony to top search solutions.
Who offers affordable Wordpress hosting with CI/CD with zero-downtime dep
I got a simple site im setting up and I want to be able to push an update to my github repo that has my theme and plugins. I saw render.com but it doesnt offer zero-downtime for deployments if you have a persistent disk....meaning what if I upload images like for blog post...they wont stay so.....Now im confused on how to even do CI/CD where I can have a realistic WordPress site, using Github, and not have downtime when I push updates.
https://redd.it/1j2ndqg
@r_php
I got a simple site im setting up and I want to be able to push an update to my github repo that has my theme and plugins. I saw render.com but it doesnt offer zero-downtime for deployments if you have a persistent disk....meaning what if I upload images like for blog post...they wont stay so.....Now im confused on how to even do CI/CD where I can have a realistic WordPress site, using Github, and not have downtime when I push updates.
https://redd.it/1j2ndqg
@r_php
Render
Cloud Application Platform | Render
On Render, you can build, deploy, and scale your apps with unparalleled ease – from your first user to your billionth.
Model attributes are easy to discover
I saw a post a few days ago where everyone was asked what they could have in Laravel if they got their wish. So many people talked about the models having attributes and stuff that they couldn't just see that in their code.
I'm not saying that you'll get intellisense or other ide helpers, but model:show is awesome and has been around for a while.
Here's a tutorial so that you can access this info super fast in vs code.
https://www.openfunctioncomputers.com/blog/quick-access-to-laravel-model-info-in-vs-code
https://redd.it/1j2u7bf
@r_php
I saw a post a few days ago where everyone was asked what they could have in Laravel if they got their wish. So many people talked about the models having attributes and stuff that they couldn't just see that in their code.
I'm not saying that you'll get intellisense or other ide helpers, but model:show is awesome and has been around for a while.
Here's a tutorial so that you can access this info super fast in vs code.
https://www.openfunctioncomputers.com/blog/quick-access-to-laravel-model-info-in-vs-code
https://redd.it/1j2u7bf
@r_php
Streamline Symfony error tracking with GlitchTip
https://ngandu.hashnode.dev/streamline-symfony-error-tracking-with-glitchtip
https://redd.it/1j2zqit
@r_php
https://ngandu.hashnode.dev/streamline-symfony-error-tracking-with-glitchtip
https://redd.it/1j2zqit
@r_php
Pros and Cons by using spatie-translatable ?
Hi guys, would you use spatie-translatable for a multilanguage website (around 5-6 langs) or go with only DB schema? Are there any pros and cons using spatie??
Thanks
https://redd.it/1j3613p
@r_php
Hi guys, would you use spatie-translatable for a multilanguage website (around 5-6 langs) or go with only DB schema? Are there any pros and cons using spatie??
Thanks
https://redd.it/1j3613p
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Does Laravel Cloud support Non-Laravel codebases or Docker?
The noscript is my question. We are currently in planning phase and I plan to tell the stakeholders that we want to use Laravel Cloud as hosting solution so they create accounts for me and my dev. team.
But because of our design preference, we will use Laravel specifically for API and backend tasks...
We will have 3 frontend applications with their own separate code bases... So I wonder if Laravel Cloud only allows you to host Laravel apps or can we also use it to host Svelte and React codebases that doesn't have PHP code at all?
I wonder if we can also use Docker images on Laravel Cloud as well.
https://redd.it/1j36bd7
@r_php
The noscript is my question. We are currently in planning phase and I plan to tell the stakeholders that we want to use Laravel Cloud as hosting solution so they create accounts for me and my dev. team.
But because of our design preference, we will use Laravel specifically for API and backend tasks...
We will have 3 frontend applications with their own separate code bases... So I wonder if Laravel Cloud only allows you to host Laravel apps or can we also use it to host Svelte and React codebases that doesn't have PHP code at all?
I wonder if we can also use Docker images on Laravel Cloud as well.
https://redd.it/1j36bd7
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
SymfonyLive Paris 2025 : API Platform sans Doctrine
https://symfony.com/blog/symfonylive-paris-2025-api-platform-sans-doctrine?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j389pj
@r_php
https://symfony.com/blog/symfonylive-paris-2025-api-platform-sans-doctrine?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j389pj
@r_php
Symfony
SymfonyLive Paris 2025 : API Platform sans Doctrine (Symfony Blog)
Optimize your APIs with API Platform! Learn with Jérôme Tamarelle how to query different databases, fine-tune performance, and even build APIs without Doctrine