Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

dhanikk's avatar

πŸš€ Introducing DBStan – Static Analysis for Database Queries

Hi everyone πŸ‘‹ I’d like to share a package I’ve been working on called DBStan, designed to improve the reliability and quality of database interactions in Laravel applications. πŸ” Problem While Laravel provides excellent tools for working with databases, it’s still easy to: Write inefficient or problematic queries Miss potential issues before runtime Lack visibility into query st

dhanikk's avatar
dhanikk's avatar dhanikk2mos agoLaravel
2
2
Last reply by dhanikk 2mos ago
andyz's avatar

Proble with Laravel 13, nwidart/laravel-modules and opgginc/codezero-laravel-localized-routes

In a new Laravel 13 project, when I install both opgginc/codezero-laravel-localized-routes and nwidart/laravel-modules, when composer dump-autoload runs I get the following error: Maximum call stack size of 67043328 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion? at vendor\laravel\framework\src\Illuminate\Container\Container.php:18

andyz's avatar
andyz's avatar LaryAI2mos agoLaravel
1
59
Last reply by LaryAI 2mos ago
BaselAJ's avatar

Should I use Inertia for a new ERP system?

I am currently assigned to create a ReactJS + Laravel + TailwindCSS stack ERP system while maintaining a Multi-Tenant/Modular Architecture, so far I've created the ReactJS and the Laravel parts separately. Was wondering if it's better to keep going with 2 Separate Projects or Join them into one using Inertia. Bare in mind I've used Inertia with VueJS not ReactJS back in the day

BaselAJ's avatar
BaselAJ's avatar Aciement2mos agoInertia
9
1
Last reply by Aciement 2mos ago
brtbrt's avatar

Laracasts worth it?

I signed up for a yearly Laracasts plan but rarely find video series that cover what I want to do. Eg. deployment via Github, no word on it. Or using Filament, no single word in the videos. Receiving webhooks, only covered when using Cashier. Learning more about Policies, only one video tackles it for Laravel 5. Am I coming with the wrong expectations? It seems like Laravel Dai

brtbrt's avatar
brtbrt's avatar Randy_John...2mos agoLaravel
9
1
Last reply by Randy_Johnson 2mos ago
Randy_Johnson's avatar

GraphQL πŸ€”

Is it any good?

Randy_Johnson's avatar
Randy_Johnson's avatar Randy_John...2mos agoGeneral
7
2
Last reply by Randy_Johnson 2mos ago
Giorgi's avatar

Do you struggle remembering Laravel collection methods and PHP syntax during interviews?

I've been a Laravel developer for several years and my biggest weakness is remembering syntax under pressure β€” collection methods, PHP variable types, Eloquent methods. I know how to use them in real work but blank out in interviews. I'm exploring building a spaced repetition tool specifically for Laravel/PHP developers β€” like Duolingo but for Laravel knowledge. Daily practice,

Giorgi's avatar
Giorgi's avatar Randy_John...2mos agoLaravel
1
1
Last reply by Randy_Johnson 2mos ago
laracoft's avatar

No way to set HTTP status

HTTP/2 400 server: openresty date: Sat, 04 Apr 2026 11:28:22 GMT content-type: text/html; charset=utf-8 cache-control: no-cache, private x-ratelimit-limit: 60 x-ratelimit-remaining: 57 phpdebugbar-id: 01KNC40K97P25K2JC4TFG74HMH access-control-allow-origin: * Calling abort(400, 'No parameters provided'); gives me the above, is there a way to show my message like when I'm calli

laracoft's avatar
laracoft's avatar martinbean2mos agoLaravel
3
1
Last reply by martinbean 2mos ago
Armanhozyn's avatar

If anyone knows to bind policy to the controller in Laravel 13.

In build forum course, I am trying to do this. use Illuminate\Foundation\Auth\Access\AuthorizesRequests; class CommentController extends Controller use AuthorizesRequests; public function __construct() { $this->authorizeResource(Comment::class); } } In my controller, But I am getting this error for this Call to undefined method App\Http\Controllers\CommentController::middlew

Armanhozyn's avatar
Armanhozyn's avatar Armanhozyn2mos agoLaravel
3
116
Last reply by Armanhozyn 2mos ago
Randy_Johnson's avatar

Axios Hacked! ⚠️

Or was it πŸ€”

Randy_Johnson's avatar
Randy_Johnson's avatar Randy_John...2mos agoGeneral
10
5
Last reply by Randy_Johnson 2mos ago
gizmojo's avatar

Livewire change response status code in full page component

Is it possible to set the response status code? E.g I have a full-page livewire component that servers a pretty 404 but need to set the status code to 404. Standard controller I do it by: return response(view('products.not_available'), 404);

gizmojo's avatar
gizmojo's avatar Muetze2mos agoLivewire
4
1
Last reply by Muetze 2mos ago
Shivamyadav's avatar

Laravel Smart Attendance System with Live Geofencing (10–20 Meter Radius) β€” Feedback Needed

I’m building a lightweight Laravel-based attendance system where users can check in/out only when they are physically present within a strict 10–20 meter radius of the workplace using live GPS validation. βš™οΈ Core Features Implemented 2.πŸ“ Real-time geofencing (strict 10–20m radius enforcement) 🎯 GPS accuracy filtering (reject low-accuracy readings) ⏱️ Live check-in only (no del

Shivamyadav's avatar
Shivamyadav's avatar martinbean2mos agoLaravel
7
6
Last reply by martinbean 2mos ago
zerosAndOnes's avatar

Inertia and SEO

Hello! I have been working on an app where SEO is essential. I have been using Livewire, which is great--but due to issues that arise from conflicts with using some libraries like flowbite (e.g, component not refreshing after adding wire:ignore because livewire makes a flow bite component to act bad), I am looking to switch to Inertia with vue or react, but I am a bit concerned

zerosAndOnes's avatar
zerosAndOnes's avatar Teddy-Jame...2mos agoInertia
16
127
Last reply by Teddy-James 2mos ago
Developer654079525's avatar

Controller's helper fn

Where should i keep the helper fn that fetches some data from a particular db table and is then used extensively across only two controller classes? Should i keep it as a private member function in both controllers and then invoke it in other member functions as: $result = this->myFn(); Or should I move it to a model, mark it as static and then in my controllers invoke it a

Developer654079525's avatar
Developer654079525's avatar Snapey2mos agoLaravel
3
4
Last reply by Snapey 2mos ago
vincent15000's avatar

InertiaJS and SSR

Hello, I never used SSR and I don't understand the documentation about SSR. https://inertiajs.com/docs/v3/advanced/server-side-rendering#manual-setup The Vite plugin reuses your app.js entry point for SSR by default, so no separate file is needed. Most customizations may be handled using the withApp callback. => no need to add another file than the base app.js file https:/

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoInertia
0
1
sanjaysamant's avatar

Shared hosting redirect to public always

Options -MultiViews -Indexes RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILEN

sanjaysamant's avatar
sanjaysamant's avatar imranbru2mos agoLaravel
3
1
Last reply by imranbru 2mos ago
sr57's avatar

Xdebug alternative?

I just wonder if anyone use other tool than XDebug to profile php codes? And why?

sr57's avatar
sr57's avatar imranbru2mos agoGeneral
5
1
Last reply by imranbru 2mos ago
jlrdw's avatar

Forum only not displaying on Firefox 149.0 64 bit

Anyone else having problems with the forum portion only with Firefox? Other areas are working fine.

jlrdw's avatar
jlrdw's avatar Jsanwo642mos agoFeedback
9
1
Last reply by Jsanwo64 2mos ago
ebutler's avatar

"View path not found" on Prod but works locally

Hi! I'm getting the following runtime exception when I deploy my Laravel app to the server: Running artisan commands for staging... INFO Configuration cached successfully. INFO Events cached successfully. INFO Routes cached successfully. In ViewClearCommand.php line 59: VIEW PATH NOT FOUND. I don't get this at all when I am working locally on my app. Does anyone have any insig

ebutler's avatar
ebutler's avatar Glukinho2mos agoLaravel
5
19
Last reply by Glukinho 2mos ago
BOCEMBV12's avatar

Laravel Beginner

HI everybody i'm starting learning Laravel which courses you can recommended me please ?

BOCEMBV12's avatar
BOCEMBV12's avatar Armanhozyn2mos agoLaravel
6
2
Last reply by Armanhozyn 2mos ago
jschlies's avatar

Using Laravel Excel to insert a Chart into an Excel Worksheet

PHP 8.4 "laravel/framework": "^12.31", "laravel/sanctum": "^4.2", "laravel/ui": "^4.6", May I please pointed to an example of a Worksheet Export that generates a spreadsheet with an embedded chart? I presume this is the documentation I should be looking at. https://docs.laravel-excel.com/ The examples foun

jschlies's avatar
jschlies's avatar imranbru2mos agoGeneral
3
2
Last reply by imranbru 2mos ago
lobothijau's avatar

Weird Stacking Behavior of Inertia + Vue on Some Links

Hello everyone, I'm new to the combination of Inertia + Vue inside a Laravel project. In this project, I found a weird issue where some links when clicked will stack on top of each other. This happened on some links only, not all. Issue fixed temporarily by hard refresh (ctrl+shift+r) but it'll come again. If you see on the screenshot below, the bright (white background) is th

lobothijau's avatar
lobothijau's avatar lobothijau2mos agoInertia
3
1
Last reply by lobothijau 2mos ago
yougotnet's avatar

Laravel Policy and Spatie Permissions

I want to validate that a user can edit post that has the user id on it. I am trying to use Laravel Policies but I have Spatie Permissions installed and the policy never runs. I've created a spatie permission to edit post, but that doesn't check the user id.

yougotnet's avatar
yougotnet's avatar jlrdw2mos agoLaravel
4
3
Last reply by jlrdw 2mos ago
Maadhih25's avatar

Database migration

I already have a database with data. Do I need to create migrations for it in Laravel, and if so, how can I avoid losing the existing data?

Maadhih25's avatar
Maadhih25's avatar Tray22mos agoLaravel
3
1
Last reply by Tray2 2mos ago
FireBlade's avatar

NGINX server reading wrong css asset file in production following this guide https://docs.docker.com/guides/frameworks/laravel/production-setup/#create-a-docker-compose-configuration-for-production

For my setup, the Laravel app is inside src folder while all other docker setup files are outside src folder. My Dockerfile for NGINX container: FROM node:22-alpine AS builder WORKDIR /app # Copy Laravel application code COPY ./src/. /app RUN npm install && npm run build FROM nginx:1.21-alpine COPY --from=builder /app/public /var/www/public COPY ./nginx/nginx.conf

FireBlade's avatar
FireBlade's avatar FireBlade2mos agoCode Review
2
1
Last reply by FireBlade 2mos ago
swez_k's avatar

My Site Stops Working During Deployments

My site stops working during development, it just keeps loading, this happens only while its being deployed. is this normal behavior ? Thank you.

swez_k's avatar
swez_k's avatar swez_k2mos agoForge
6
1
Last reply by swez_k 2mos ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

Β© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

Β© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.