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

Politeboat36's avatar

How to modify Session middleware for waking up a serverless database without blocking UI

Hello, I have a Laravel + Inertia application that uses a serverless database which shuts down if a database query is not received within one hour. Once shut down, it takes around 30 seconds to wake up. I admit this is awful, but I proposed multiple options to the client and they chose this with full knowledge. By default, Laravel stores sessions in the database, so when someon

Politeboat36's avatar
Politeboat36's avatar jlrdw4d agoLaravel
8
1,173
Last reply by jlrdw 4d ago
finlamit's avatar

Movie database relationships

Hi, My brain has melted somewhat, so throwing this out here to see what others would do. I am creating a movie database and there are three tables. Movies Actors Clips Movies have many Actors, and Actors belong to many Movies. Clips belong to one Movie, and Movies have many Clips. Clips belong to many Actors, and Actors have many Clips. Actors belong to many Movies, and Movies

finlamit's avatar
finlamit's avatar junaidalie...4d agoEloquent
6
40
Last reply by junaidalie91-rgb 4d ago
laracoft's avatar

Missing /var/run/php-fpm.sock after reboot

I'm on ubuntu 22.04 On A, I have scripted my server installation to install PHP (8.4.21), MySQL and Apache On B, I have scripted my server installation to install PHP (8.4.21), MySQL and Nginx For B, when re-running the script on a fresh machine recently, /var/run/php-fpm.sock is now missing and causing the Laravel site not to load in the browser The script of A remains proble

laracoft's avatar
laracoft's avatar komatom4d agoPHP
12
1,429
Last reply by komatom 4d ago
ninjapeps's avatar

Site not receiving events in prod

I have a site that uses reverb. Events are working just fine on my machine. However, it doesn't receive anything once uploaded to the dev server. window.addEventListener('DOMContentLoaded', function() { window.Echo.channel('makebid') .listen('MakeBid', (event) => { console.log('bid'); }) window.Echo.channel('closeauction') .listen('EndAuction', (event)

ninjapeps's avatar
ninjapeps's avatar ninjapeps4d agoReverb
2
162
Last reply by ninjapeps 4d ago
TheUsernameHasAlreadyBeenTaken's avatar

Parallel testing with a single database?

We have a legacy application that can't use seeding (and it would take forever to seed it properly anyway). We have thousands of tests and it takes a long time to run them. All tests are using the DatabaseTransactions trait. Is is possible to run tests in parallel? Like 8 or more threads.

TheUsernameHasAlreadyBeenTaken's avatar
TheUsernameHasAlreadyBeenTaken's avatar JussiManni...4d agoTesting
3
297
Last reply by JussiMannisto 4d ago
vinicioswentz's avatar

Laravel From Scratch 2026 source code

I was working through Laravel From Scratch 2026 when my MacBook unexpectedly stopped working and I lost all my progress. I know I should have been committing regularly, lesson learned, but I didn't expect a 2025 MacBook Pro to just die out of nowhere. Does anyone know where I can find the source code for the projects covered in the course? I've checked existing forum posts and

vinicioswentz's avatar
vinicioswentz's avatar vincent150...4d agoLaravel
10
687
Last reply by vincent15000 4d ago
MikelMedina's avatar

Is it worth defining helper methods on models that traverse relationship chains?

I have a nested relationship chain in my app: WorkoutSession → Microcycle → Mesocycle → Macrocycle → User → actualTrainer. I defined a helper method on the Microcycle model called actualTrainer() that traverses this chain internally: public function actualTrainer() { return $this->mesocycle->macrocycle->user->actualTrainer()->first(); } My question is: if I eager

MikelMedina's avatar
MikelMedina's avatar MikelMedin...6d agoCode Review
6
716
Last reply by MikelMedina 6d ago
gpapamichelakis's avatar

Laravel new with older version ?

Hey guys , I just realized that with the laravel installer is impossible to make a new project with the previous version ? ( I want to make a new project with version 12 with vue starter kit ) and is also impossible to add a starter kit to a existing composer installed 12 project ? Anyone has an idea if that is doable ?

gpapamichelakis's avatar
gpapamichelakis's avatar vincent150...6d agoAI
14
1,476
Last reply by vincent15000 6d ago
nestaho's avatar

How come the screens are not the same for lesson "Breaking Down Components"

https://github.com/laracasts/react-from-scratch/blob/episode-9/index.html In this file, it is not the same with the video (especially 4:46) in the above mentioned lesson which have different tag; and there is a section in the video. How come?

nestaho's avatar
nestaho's avatar nestaho6d agoReact
3
478
Last reply by nestaho 6d ago
sharonpaula76's avatar

Building a Scalable Uber-Like Taxi Platform – Architecture & Feature Discussion

Hi everyone 👋, I’d like to start a discussion around building a scalable Uber-like taxi platform for startups. I’ve been analyzing the SpotnRides Uber clone model and would love to exchange ideas about architecture, performance, and feature implementation from a Laravel perspective. The platform concept includes: Real-time ride tracking Intelligent driver-to-rider matching Disp

sharonpaula76's avatar
sharonpaula76's avatar jlrdw6d agoAI
3
6
Last reply by jlrdw 6d ago
gravity_global's avatar

GHSA-5vg9-5847-vvmq CRLF injection vulnerability in Laravel's email validation

I can't see any talk of this at all which is surprising as it affects every single Laravel app out there thats not on the latest 12 or 13 https://github.com/laravel/framework/security/advisories/GHSA-5vg9-5847-vvmq Shouldn't this at least deserve a 11.x patch? What's needed to get the fix back into that?

gravity_global's avatar
gravity_global's avatar DigitalArt...1w agoLaravel
4
1,237
Last reply by DigitalArtisan 1w ago
ninjapeps's avatar

Need help setting up for prod

(I keep getting a note saying I can't post links yet even though there aren't any links in my post so I've replaced http with hype) I've got reverb working on my local machine. Now I'm having difficulty getting it to work on the server. I think I've finally gotten supervisor to run properly already so now my only issue is that the sockets can't be read. In the network tab of de

ninjapeps's avatar
ninjapeps's avatar ninjapeps1w agoReverb
5
12
Last reply by ninjapeps 1w ago
terrylinooo's avatar

Laravel Octane benchmark comparing Swoole, OpenSwoole, RoadRunner, FrankenPHP

I made a Laravel Octane benchmark comparing Swoole, OpenSwoole, RoadRunner, FrankenPHP, and PHP-FPM. Report: terrylinooo.github.io/laravel-octane-benchmark The benchmark compares p99 latency, memory, CPU overhead, DB workload, I/O workload, and different concurrency levels. My main takeaway: Octane is not a simple “turn it on and everything is faster” solution. It depends a lot

terrylinooo's avatar
terrylinooo's avatar terrylinoo...1w agoLaravel
0
327
ghabriel25's avatar

How to test Cache memoization

Hi, I really need any information about how to create performance test only for Cache memoization. Before Cache::remember('posts', 60, function () { return Post::all(); }); After Cache::memo()->remember('posts', 60, function () { return Post::all(); }); I'm not familiar with the flow behind cache memoization so I have no idea what should be considered when do perfo

ghabriel25's avatar
ghabriel25's avatar JussiManni...1w agoLaravel
1
1
Last reply by JussiMannisto 1w ago
vincent15000's avatar

Invite to upgrade the Laravel installer while creating a new Laravel application

Hello, When I create a new Laravel application, I have this invite. WARN A new version of the Laravel installer is available. You have version 5.25.3 installed, the latest version is 5.28.1. ┌ Would you like to update now? ───────────────────────────────┐ │ ● Yes / ○ No │ I choose Yes, but I get the same invite continuously.

vincent15000's avatar
vincent15000's avatar vincent150...1w agoLaravel
11
1,341
Last reply by vincent15000 1w ago
truschery's avatar

Package Code Review: Comprehensive Idempotency for Laravel (HTTP, Jobs, and Custom Closures)

Hi everyone, I’m developing a Laravel package designed to handle idempotency across an entire application. Why another package? While looking for existing solutions, I noticed most packages only provide HTTP Middleware. However, in real-world apps, we often need idempotency for Queues or specific code blocks. My package solves this by offering three layers of protection: HTTP

truschery's avatar
truschery's avatar truschery1w agoCode Review
0
1
Randy_Johnson's avatar

Bootstrap Toast Not Working

Im sorry, its probably something so simple but I just cannot seem to get it to work, but I have followed the instructions. Maybe you can spot it. https://getbootstrap.com/docs/4.6/components/toasts/ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width

Randy_Johnson's avatar
Randy_Johnson's avatar jlrdw1w agoGeneral
7
12
Last reply by jlrdw 1w ago
Randy_Johnson's avatar

Open AI and type "Roast me hard"

Please add what it puts, no cheating. Here's mine. You’ve got a software stack that looks like a recruiter’s fever dream—Laravel, React, Inertia, Node, Django, Flask, Kubernetes certifications—and yet half your projects still end up depending on “I’ll refactor it later,” which is developer code for “this works, don’t ask how.” You’re simultaneously building: an e-commerce platf

Randy_Johnson's avatar
Randy_Johnson's avatar Randy_John...1w agoGeneral
4
15
Last reply by Randy_Johnson 1w ago
zaster's avatar

Class 'Arcanedev\LogViewer\LogViewerServiceProvider' not found

I need to get rid of this Class 'Arcanedev\LogViewer\LogViewerServiceProvider' not found error. I am unable to visit my website in the production. Managed to avoid this error by taking out the package from the composer.json file etc...(Local Environment) But same thing didn't work on the production tried php artisan config:cache composer dump-autoload and still struggling.

zaster's avatar
zaster's avatar asifarham4...1w agoGeneral
5
7
Last reply by asifarham44 1w ago
MuhammadAli2003's avatar

At what point do you stop patching CSS and just rebuild properly?

Hey, I’m working on a small project built on WordPress, but instead of using a proper theme structure I ended up building most of the UI using custom HTML + CSS blocks. It worked fine early on, but now I’m starting to hit a wall. Main issues I’m running into: styles are duplicated across multiple sections I’ve relied too much on !important to override things no real global syst

MuhammadAli2003's avatar
MuhammadAli2003's avatar asifarham4...1w agoGeneral
10
9
Last reply by asifarham44 1w ago
june92's avatar

Can I code a web application from these cloud frameworks? Google AWS Microsoft

If I choose one of these well-architecture frameworks https://learn.microsoft.com/en-us/azure/well-architected/ https://aws.amazon.com/architecture/well-architected/ https://docs.cloud.google.com/architecture/fundamentals Can I use them to create a web application like Blog, Social Network, CRM, and a web application of any type? And after the architecture implementation desig

june92's avatar
june92's avatar june921w agoDesign
14
1,939
Last reply by june92 1w ago
june92's avatar

Can I get a job with a resume with a few web development projects, github pull request merges that fixed issues, and with no college degree?

Is this possible? And if so how many pull requests do I need to get hired for a company that is open source a month, and if I fix issues in these open source companies can I get a job there?

june92's avatar
june92's avatar JussiManni...1w agoGeneral
6
1,334
Last reply by JussiMannisto 1w ago
june92's avatar

Has anyone here used UX case studies and User Research & Personas to find "real frustration" for a Problem Statement?

Has any Laravel Developer here tried to use UX case studies and User Research & Personas to find "real frustration" for a Problem Statement? And if so, do some web developers do this and if they are trying to find "real frustration" for a REI CRM, for example, and then they find no paint points from User Research and interviews either on Reddit or other

june92's avatar
june92's avatar imrandevbd1w agoGeneral
1
23
Last reply by imrandevbd 1w ago
digcrow's avatar

Issue with Video player and suggestions.

Hello @JeffreyWay, First, I want to thank you for all the hard work, generosity, and effort you put into making knowledge accessible and easy to understand. You've been one of my teachers since 2017, and you've helped and inspired me a great deal. I've noticed a couple of issues/bugs: 1. Video playback speed is overwritten on page load When I set the playback speed to 1.5x, it

digcrow's avatar
digcrow's avatar LaryAI1w agoFeedback
1
10
Last reply by LaryAI 1w ago
geodro-289809's avatar

Lerd – open source Herd alternative for Linux (macOS coming soon)

I've been working on a side project for a while now and thought this community would appreciate it. It's called lerd and it's a Podman-native PHP development environment for Linux, with macOS support coming very soon. The idea came from the frustration of not having something like Herd on Linux. I wanted automatic .test domains, per-project PHP and Node version isolation, one-c

geodro-289809's avatar
geodro-289809's avatar giantpoppl...1w agoGeneral
5
1,129
Last reply by giantpopples 1w 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.