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

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
1
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
2
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
1
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
1
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...3mos agoCode Review
5
1
Last reply by vincent15000 3mos 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 LaryAI3mos agoInertia
1
3
Last reply by LaryAI 3mos 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 DNABeast3mos agoEloquent
4
2
Last reply by DNABeast 3mos 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 kupce3mos agoFeedback
0
1
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 LaryAI3mos agoFeedback
1
5
Last reply by LaryAI 3mos 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 LaryAI3mos agoTesting
1
1
Last reply by LaryAI 3mos 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...3mos 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 LaryAI3mos agoTesting
1
1
Last reply by LaryAI 3mos 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 LaryAI3mos agoTesting
1
1
Last reply by LaryAI 3mos 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 abinash8893mos agoLaravel
0
1
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 Sergiu173mos agoLaravel
2
1
Last reply by Sergiu17 3mos ago
davy_yg's avatar

I wonder why I didn't receive any email

My Codes are the following: views/admin/contact.blade.php @extends('layout.master') @section('content') @if($message = Session::get('flash')) <div class="alert alert-success"> {{ $message }} </div> @endif @if($errors->any()) @foreach($errors->all() as $error) <div class="alert alert-danger">

davy_yg's avatar
davy_yg's avatar Jsanwo643mos agoCode Review
5
6
Last reply by Jsanwo64 3mos ago
Developer654079525's avatar

Link storage

If a CMS stores raw HTML, and some anchor links, or their parts (not many but a few of them) might change in the future, what is the preferred approach to store such links? Use some made up syntax/templating like {:something1}, {:something2} and then regex replace these in the future? Currently I keep the hard coded full URLs and replace parts where they change in the future.

Developer654079525's avatar
Developer654079525's avatar vincent150...3mos agoLaravel
4
1
Last reply by vincent15000 3mos ago
arrrssssss's avatar

Delete with inertia2, wayfinder, vue

Hi community, I want to delete a record via inertia2 Form component, and wayfinder controller, but I get stuck here in some forms like this we have <script setup> import { Form } from '@inertiajs/vue3' import { store } from 'App/Http/Controllers/UserController' </script> <template> <Form v-bind="store().form" v-slot="{ errors, proces

arrrssssss's avatar
arrrssssss's avatar M1chael303mos agoInertia
1
1
Last reply by M1chael30 3mos ago
lukgol26's avatar

Page is broken on mobile.

As in title. https://imgur.com/a/XhPybpo

lukgol26's avatar
lukgol26's avatar steks893mos agoFeedback
5
1
Last reply by steks89 3mos ago
juanborras's avatar

FilamentPHP. Laravel Cloud or Forge?

Dear all, I have to deploy a filament php and I have to choose between laravel cloud and forge. Anyone has any experience? Thanks in advance!

juanborras's avatar
juanborras's avatar LaryAI3mos agoFilament
1
1
Last reply by LaryAI 3mos ago
M1chael30's avatar

New to Laravel

Share me some tips to improve my coding in Laravel.

M1chael30's avatar
M1chael30's avatar kupce3mos agoLaravel
7
5
Last reply by kupce 3mos ago
jwhoami's avatar

How to format currency in laravel

Hi, In my .env, my locale is set as APP_LOCALE=es However, when I format the currency, I get the following 8,00 US$ when I set the locale to 'us', I get the following $ 8.00 How can I maintain my locale as es and format the number in us format Thanks

jwhoami's avatar
jwhoami's avatar martinbean3mos agoLaravel
8
5
Last reply by martinbean 3mos ago
adamnet's avatar

Parse XML data into model

Hello everyone. Hello everyone. Does anyone have practical knowledge on how to import xml data into a database? Any example/instructions would be valuable.

adamnet's avatar
adamnet's avatar jlrdw3mos agoLaravel
5
1
Last reply by jlrdw 3mos 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.