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

devSSI's avatar

getKeyName in Laravel 10 causes issue in test when slug is primary key

I have been working on rest api and now I am working on some tests, but since I want to use slug on my model as primary key (usual setup with getKeyName) I have strange behaviour. For example for this create method: $modelInstance = Model::create([ 'title' => 'Old Title', 'slug' => Str::slug('Old Title'), 'description' => 'Old descri

devSSI's avatar
devSSI's avatar devSSI2mos agoLaravel
5
3
Last reply by devSSI 2mos ago
thefireescaper's avatar

Best table to use with Laravel

I'm looking for any advice on what able to use to present data on a Laravel site. Table needs the usual sort, filter etc. but also looking for ability to display graphics eg. Mini chart lines etc. I currently use rappasoft table https://rappasoft.com/docs/laravel-livewire-tables/v3/introduction It's ok but lacks flexibility with the graphical elements etc. Thank you

thefireescaper's avatar
thefireescaper's avatar rudiwer2mos agoLaravel
6
5
Last reply by rudiwer 2mos ago
bcs02123052's avatar

how to get all cache items by tag ?

Is there a way to get all the cache items by tag maybe like this // save the items in cache $banks = Bank::all(); foreach ($banks as $bank) { Cache::tags(['banks'])->put('bank_' . $bank->id, $bank, now()->addHours(1000)); } // the get items like this maybe $banks = Cache::tags("banks")->getAll();

bcs02123052's avatar
bcs02123052's avatar tobz.nz2mos agoLaravel
6
17
Last reply by tobz.nz 2mos ago
hyperanjeeta's avatar

Am I the only one who genuinely prefers on-prem over the cloud?

For years, my career was purely focused on on-prem infrastructure, mainly in Linux-based roles. I spent my days configuring OSs with Ansible and deploying them with Terraform using on-prem providers like vSphere and Proxmox. We hosted everything ourselves, and I really loved the feeling of actually owning those workloads. A few months ago, I took a new job at a company that hel

hyperanjeeta's avatar
hyperanjeeta's avatar jlrdw2mos agoDevOps
2
2
Last reply by jlrdw 2mos ago
hyperanjitha's avatar

Is Envoyer superfluous after the new Forge update?

I've been using Forge and Envoyer together for a while now and the setup has been great but just deployed a new site with Forge and notice it's doing the job of Envoyer now…? Am I missing something or can I retire Envoyer now and just deploy through Forge only?

hyperanjitha's avatar
hyperanjitha's avatar jlrdw2mos agoEnvoyer
1
2
Last reply by jlrdw 2mos ago
hermeneus's avatar

Laravel Vite: Assets blocked/Mixed Content issues in production environment

I'm hosting my App on an EC2-instance behind an Elastic Load Balancer which manages my SSL-Certificate. On this EC2-Instance my nginx-configuration is redirecting all http-Requests to https. I recently switched to Vite which caused me a lot of trouble. When I push my app to the server after calling npm run build my assets are blocked. In the browser console I get: Mixed Content

hermeneus's avatar
hermeneus's avatar meenachinm...2mos agoVite
24
476
Last reply by meenachinmay 2mos ago
SachinAgarwal's avatar

path too long error on windows 10

when I run the npm install on windows machine after setting up laravel I get the following error: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(308,5): error MSB3491: Could not write lines to file "R elease\obj\bufferutil\bufferutil.tlog\bufferutil.lastbuildstate". The specified path, file name, or both are too long. The fully qual

SachinAgarwal's avatar
SachinAgarwal's avatar jackyflint...2mos agoMix
31
3
Last reply by jackyflint211 2mos ago
laracoft's avatar

Gemini vs Claude with Boost?

Has anyone used both Gemini and Claude with Boost? Which is better and why?

laracoft's avatar
laracoft's avatar jlrdw2mos agoAI
5
2
Last reply by jlrdw 2mos ago
Developer654079525's avatar

Custom config

Where to keep and how to access custom configuration key-value pairs? A fixed number of them that should be visible to all models and views. Is it a matter of just adding a new .php file to the config folder and returning an array? I need it to store some opcodes.

Developer654079525's avatar
Developer654079525's avatar vincent150...2mos agoLaravel
3
4
Last reply by vincent15000 2mos ago
LeonelGauna's avatar

Using API Resources without Models?

Hello, how is everyone doing? I already asked Gemini for info and researched the web, and it seems there is no problem doing this, but I kind of wanted an excuse to use the Laracasts forum 😊. I have a question about API Resources. I'm playing around with a small API of mine and I wanted to make all its responses consistent by having the same shape, something like the following:

LeonelGauna's avatar
LeonelGauna's avatar LeonelGaun...2mos agoLaravel
5
1
Last reply by LeonelGauna 2mos ago
dsandall's avatar

Real World AI Agent Examples?

Hi all, I'm putting together a proposal at my day job to start some work on building out an agent to run on our intranet. What I'm looking for are some real world examples, not just tutorials. Obviously it is still pretty new, but any insights would be helpful. One of my challenges is that our official ai provider is MS365 copilot :-( My development stack is driven by Claude Co

dsandall's avatar
dsandall's avatar dsandall2mos agoAI
2
1
Last reply by dsandall 2mos ago
onghyr's avatar

How Can I Build a CRUD Page with a Modal Window?

I’m trying to create a CRUD page where forms open inside a modal window instead of redirecting to a new page. I’d like users to add, edit, or delete data through pop-up modals to keep the interface smooth and efficient. What frameworks or methods are commonly used to implement this, and what is the best approach for beginners?

onghyr's avatar
onghyr's avatar Max1002mos agoAI
5
3
Last reply by Max100 2mos ago
vincent15000's avatar

Pest browser testing for forms with a file upload

Hello, I'm writing browser tests with Pest. I have a form to update the profile name of the current user. test('user can edit his/her profile', function () { $this->actingAs($this->user); $page = visit('/profile')->on()->desktop()->wait(2); $page ->assertSee($this->user->name) ->click('@edit-profile') ->type('

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoTesting
0
2
jayeshmepani's avatar

Best approach for managing translations in Laravel?

Hey everyone, What’s your current workflow for handling translations in Laravel apps? I’ve found it becomes hard to manage as projects grow—especially extracting keys and keeping files consistent. Are you using: built-in Laravel features any packages or custom automation? Curious to learn how others are solving this.

jayeshmepani's avatar
jayeshmepani's avatar jlrdw2mos agoGeneral
1
4
Last reply by jlrdw 2mos ago
vincent15000's avatar

Security problem with this code ?

Hello, Could it be a security problem with this code ? <x-ui.submit-button x-data="{ submitted: false }" x-on:click="submitted = true; $el.closest('form').submit()" x-bind:disabled="submitted"> <div x-show="submitted" class="animate-spin"> <x-icons.spinner></x-icons.spinne

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoCode Review
5
6
Last reply by vincent15000 2mos ago
NuOrder's avatar

Inertia SSR - error

When I use component: and try to compile project nom run build:ssr then run: php artisan inertia:start-ssr viewing webpage with disabled javascript shutdown inertia SSR server with error: resolveComponent=fn<resolveComponent> ... > at <App> file:///project/node_modules/@inertiajs/vue3/dist/index.esm.js:1724 this.observer = new IntersectionObserver( ^ ReferenceE

NuOrder's avatar
NuOrder's avatar LaryAI2mos agoInertia
1
2
Last reply by LaryAI 2mos ago
DNABeast's avatar

Relationships using LIKE

I've got a Model with an id in three parts 'id' => 'FIRSTNAME_SECONDNAME_TITLE' I've got a second model where I have matching foreign_ids but the data that goes in there has wildcards. 'name_id'=> '???_SMITH_??' I want to be able to set up a relationship when all the parts that are filled in match but the wildcards are ignored. I think I need subQueries in my hasMany me

DNABeast's avatar
DNABeast's avatar DNABeast2mos agoEloquent
4
2
Last reply by DNABeast 2mos ago
kupce's avatar

Laracast - Bookmarks / Watchlist not working

The Laracast Watchlist does not show anything. I have Bookmarked ( Watchlisted ) bunch of videos yet there is nothing over here https://laracasts.com/series?watchlist=1 Is it a bug or I am doing something wrong. Literally under video there is a button add to watchlist, which I have been using.

kupce's avatar
kupce's avatar kupce2mos agoFeedback
0
3
James_Bhatta's avatar

Hold-to-Speed-Up Shortcut for Video Playback (YouTube-style)

Hi Laracasts team 👋 First off, thank you for the amazing content and platform. I wanted to suggest a small but highly impactful improvement to the video player experience: a “hold-to-speed-up” shortcut, similar to how YouTube temporarily increases playback speed while holding a key. Use Case There are a few common scenarios where this would be extremely useful: When reviewing

James_Bhatta's avatar
James_Bhatta's avatar LaryAI2mos agoFeedback
1
1
Last reply by LaryAI 2mos ago
vincent15000's avatar

Pest for end-to-end tests with the browser

Hello, I have this test. $page ->click('@create-client') ->type('reference', 'KFUYSBF') ->type('lastname', 'DUPONT') ->type('firstname', 'Martin') ->type('address_line_1', '50, rue des Cordes') ->type('address_line_2', 'Appartement 22') ->type('postcode', '75001') ->type('city', 'Paris')

vincent15000's avatar
vincent15000's avatar LaryAI2mos agoTesting
1
2
Last reply by LaryAI 2mos ago
Shivamyadav's avatar

On 2nd click for the navigation it does not clears the filters inputs like search and other things?

For the first time when I click to my sidebar notifications button it does two things: Navigate to the notifications page. Clears the notification badges for the new emails. And then I tried some filter to the notifications and when I am done with the filtering and click on the notifications button again it works again for step 1 and step 2 but the issue arrives here in the

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...2mos agoInertia
0
1
vincent15000's avatar

Pest browser testing with a select field

Hello, I have this code. <x-ui.select field="unit_id" :items="$units" selected="{{ $material->unit_id }}" :error="$errors" :required="true"> Unité @slot('options') <option value="{{ null }}">Sélectionner une unité</option> @endslot </x-ui.select> And this test. test('use

vincent15000's avatar
vincent15000's avatar LaryAI2mos agoTesting
1
1
Last reply by LaryAI 2mos ago
vincent15000's avatar

Pest browser testing with a checkboxes array

Hello, I have this code. <x-ui.input-checkbox-array field="family_ids" :value="old('family_ids', session()->hasOldInput() ? old('family_ids') ?? [] : $material->families->pluck('id')->toArray())" :items="$families" :error="$errors" :required="true" > Familles </x-ui.input-checkbox-array&g

vincent15000's avatar
vincent15000's avatar LaryAI2mos agoTesting
1
1
Last reply by LaryAI 2mos ago
abinash889's avatar

I built a free queue debugging dashboard for Laravel — no Redis needed

Hey everyone, I got tired of debugging Laravel database queues blind — no visibility, just raw SQL queries and crossed fingers. Horizon is great but requires Redis, which isn't always an option on shared hosting or smaller projects. So I built a lightweight alternative. What it does Lightweight Queue Inspector gives you a debugging dashboard for Laravel apps using the database

abinash889's avatar
abinash889's avatar abinash8892mos agoLaravel
0
2
Chron's avatar

RateLimiting in Tests

Currently, I'm just using a simple request in a for loop to trigger 429. Is there a "cleaner" way to do the test?

Chron's avatar
Chron's avatar Sergiu172mos agoLaravel
2
2
Last reply by Sergiu17 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.