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

Shivamyadav's avatar

Can 28 index keys make the 500 rows data to slowdown?

can database table columns 28 index slowdown the 500 data import from csv in Laravel also when I update those already added 500 data it takes half time of the import 8 to 9 minutes. There are many other things are happening like creating parent division, children division auto assign the user event and courses etc stuffs.

Shivamyadav's avatar
Shivamyadav's avatar jlrdw3mos agoDesign
10
1
Last reply by jlrdw 3mos ago
andrews-quest's avatar

Inertia Form: Merge two objects of URL parameters?

I'm trying to use Inertia <Form> to pass some parameters to a URL request, along some other ones that are stored as variables in React. For that I'm trying to use object merging like: <Form method='GET' action='/calls' transform={data => ({...queryParams, ...data})} > But that flops because, for some reason, the form's URL parameters always get overwritten by wh

andrews-quest's avatar
andrews-quest's avatar andrews-qu...3mos agoInertia
2
1
Last reply by andrews-quest 3mos ago
yumna12-coder's avatar

Struggling With Laravel From Scratch 2026

If I found laravel-from-scratch-2026 course difficult, is there a simpler level than this? And what is the best way to study the course? For example, the first two videos of the final project took me two days and I still didn't fully understand them.

yumna12-coder's avatar
yumna12-coder's avatar wordxpress...4mos agoLaravel
10
12
Last reply by wordxpression 4mos ago
vincent15000's avatar

API resources and accessors

Hello, I have this code. protected function price(): Attribute { return Attribute::make( get: fn ($value) => $value / 100, set: fn ($value) => (int) round($value * 100), ); } protected function expenses(): Attribute { return Attribute::make( get: fn (int $value) => $value / 100, set: fn (float $value) => (int) round($valu

vincent15000's avatar
vincent15000's avatar vincent150...4mos agoLaravel
2
1
Last reply by vincent15000 4mos ago
RayC's avatar

Livewire 4 @island issue with refresh

There is a distinct possibility I may be missing something here. I am following the "Everything New in Livewire 4" series. In the "Islands" portion I am getting a weird issue when utilizing them, Issue: When I click the refresh icon in any of the islands, ALL the refresh icons animate in all the islands. But in the video, only the one clicked should ne anima

RayC's avatar
RayC's avatar RayC4mos agoLivewire
0
3
Randy_Johnson's avatar

Help, login in page redirecting to default laravel login page

Hi, I created a login in portal so that the user is given the choice to login as admin (will probably hide this later) , student, etc. but when I click the link it just redirects me to the login page. But there is absolutely no reason for it to do so. <?php use Illuminate\Support\Facades\Route; use Inertia\Inertia; use Carbon\Carbon; use Illuminate\Http\Request; use Illumin

Randy_Johnson's avatar
Randy_Johnson's avatar jlrdw4mos agoGeneral
8
3
Last reply by jlrdw 4mos ago
ella-stinnes's avatar

What should I test?

I'm new to testing so I'm trying to figure out what I should test. I have a CRUD for managing company details. The application has 8 different user roles, some users can access the full CRUD, some are read only and others cannot see the company details at all. Should I be creating 8 tests for the different user roles? Once I've tested the authorisation, I'm guessing I should ha

ella-stinnes's avatar
ella-stinnes's avatar martinbean4mos agoTesting
5
1
Last reply by martinbean 4mos ago
adamnet's avatar

Delete migration file in project. Way to restore?

Earlier today I created a migration file for creating a table with a lot of columns, foreign keys etc. Accidentally I deleted it. Is there any way to restore it? Is there a recycle bin into the project?

adamnet's avatar
adamnet's avatar martinbean4mos agoLaravel
8
8
Last reply by martinbean 4mos ago
thetestcoder's avatar

We migrated self hosted redis to Valkey 8.1 serverless aws elasticache.

Hi All, Old AWS EC2 for application servers AWS EC2 for horizon server AWS EC2 for self hosted Redis New AWS EC2 for application servers with ASG AWS EC2 for horizon server Valkey Serverless Cluster Mode Recently we moved self hosted redis 7.2 to valkey 8.1 culster mode. We update all configuration for slot and all. but as we are running bulk cmapaign before migration the h

thetestcoder's avatar
thetestcoder's avatar thetestcod...4mos agoLaravel
0
1
Yasm23's avatar

What should I do

Hello, I got an internship at a company for 3 months working with Laravel. After that, they will give me a task from a real project they have. The problem is that I spent two months learning topics without a specific order, and I realized that I have weak points in PHP. I also feel that the way Jeffrey Way explains things is special and very helpful. Do I still have time to res

Yasm23's avatar
Yasm23's avatar Randy_John...4mos agoGeneral
1
1
Last reply by Randy_Johnson 4mos ago
earmsby's avatar

Filament importer

I am banging my head trying to figure what the problem is with my importer. I have a csv file like this: "contract_description","default_copyright_holder","contract_type","date_executed" "Contract 1","Subito Music Corp.","Publishing","11/14/18" "Contract 2","Subito Music Corp.",&

earmsby's avatar
earmsby's avatar earmsby4mos agoFilament
2
1
Last reply by earmsby 4mos ago
Darkdawg's avatar

Livewire #Modelable not working with v4 SFC?

Hey! I created a SFC for a Flux:select, using the Modelable attribute. However, when triggering a save from the parent component the value isn't grabbed from the child. I'm using wire:model without any modifiers. Changing to wire:model.live works, but I don't want the redundant requests. This works with the old class based components, so I'm wondering if this is a bug?

Darkdawg's avatar
Darkdawg's avatar Darkdawg4mos agoLivewire
0
1
yumna12-coder's avatar

Technical problem

Why can't I watch the lessons? There's only a black screen for all the courses.

yumna12-coder's avatar
yumna12-coder's avatar LaryAI4mos agoGeneral
1
1
Last reply by LaryAI 4mos ago
ATOM-Group's avatar

"Can" middleware and route resources?

I was reading through the documentation for Authorization using Gates and Policies, and while you can do things like this: Route::put('/post/{post}', function (Post $post) { // The current user may update the post... })->middleware('can:update,post'); You can't seem to do something like this: Route::resource('post', PostController::class)->middleware('can'); I'v

ATOM-Group's avatar
ATOM-Group's avatar RomainB4mos agoLaravel
6
14
Last reply by RomainB 4mos ago
Sofia's avatar

Can validation be stopped on specific failures?

I know that there's the $stopOnFirstFailure flag that will stop validation when the first validation error occurs, but I'm looking for the ability to stop validation when specific attribute validation fails. It's not bail which will stop validating the remaining rules on that attribute, not the remaining attributes. For example: The following fields get submitted: type name e

Sofia's avatar
Sofia's avatar Snapey4mos agoLaravel
9
1
Last reply by Snapey 4mos ago
shez1983's avatar

relationship with a pivot table have a hard time querying

so originally i had a simple Company belongs to country, company has many referrals. then in my INdex, i was displaying one referral per company (based on some criteria) Now what i want to do is company can belong to many countries. (Ie global/multi national).. so i have added company_country table .. and the referrals ideally should have a company_country_id field. This is all

shez1983's avatar
shez1983's avatar shez19834mos agoLaravel
0
1
madprabh's avatar

Can I pass user owned API key in AI SDK

Hey Folks, Can I pass a user owned API key to the AI SDK? For example, like this $response = (new SalesCoach) ->prompt('Analyze this sales transcript...') ->apiKey('MyapiKey');

madprabh's avatar
madprabh's avatar madprabh4mos agoLaravel
6
3
Last reply by madprabh 4mos ago
earmsby's avatar

Deployment script/restarting Queue

I have a bunch of different sites deployed on Forge. In one or two, I'm using Filament importing and exporting and thus I have a Queue Worker process running. I noticed a difference between the deployment scripts for more recently created sites and older sites. One thing is that on the newer sites, there is this in the deployment script: $RESTART_QUEUES() On an older site wher

earmsby's avatar
earmsby's avatar LaryAI4mos agoForge
1
10
Last reply by LaryAI 4mos ago
troccoli's avatar

Flexible Cache

I have an application that displays statistics collected by another application. It gets the data via API. It also uses some filters, for example the users. So it get the list of all users via an API as well. There are just a couple of hundreds users, but since the API response are paginated the app needs to go through all the pages and collect the users. This would be called e

troccoli's avatar
troccoli's avatar troccoli4mos agoLaravel
4
1
Last reply by troccoli 4mos ago
troccoli's avatar

Cache does not persist within Livewire component

I need to store the state of a user, but instead of using fields in the users table I have decided to use a persistent cache. The reason is that I will have other use cases to store states not all related to the users, so I needed a more generic solution. So, I created the migrations for persistent_cache and persistent_cache_lock as copies for the migrations for the cache provi

troccoli's avatar
troccoli's avatar troccoli4mos agoLivewire
3
4
Last reply by troccoli 4mos ago
sisilchandana's avatar

php artisan serve not working

I am new to laravel. I installed properly laravel last week and it was work properly. Unfortunately today it is not working. When I issue the php artisan serve command it is not working. Pl help me.

sisilchandana's avatar
sisilchandana's avatar CalumChild...4mos agoCode Review
18
20
Last reply by CalumChilds 4mos ago
INTRA's avatar

Laravel + Firebase: Need SQL database too ?

Good morning everyone! Someone told me I need to synchronize databases, and I'm a bit confused. Here's my question: Do I need to build functionality to synchronize between Firebase and a SQL database in Laravel? Or can I use Firebase directly for everything? My setup: Admin panel: Laravel + Firebase Mobile app: Flutter + Firebase Can the Laravel admin panel connect directly to

INTRA's avatar
INTRA's avatar vincent150...4mos agoLaravel
1
1
Last reply by vincent15000 4mos ago
diblasid's avatar

Queue:clear doesn't clear unique locks too?

Dear all, I'm studying queues and processes, When I want a process to be unique I set its' class as: class MyProcess implements ShouldQueue, ShouldBeUnique{ public $uniqueFor = 3600; public function uniqueId(): string { return ... < UNIQUE ID > } I can see that when I fire a MyProcess ::dispatch(); it is added to the "jobs" table AND a file unde

diblasid's avatar
diblasid's avatar raphael4mos agoLaravel
2
1
Last reply by raphael 4mos ago
adamnet's avatar

Passing data into anonymous component

I have an anonymous component named citizendata which is described below: <div class="col-sm"> <div class="form-floating"> <input type="text" class="form-control" id="firstname" name="firstname" value="{{ old('firstname', $citizen->firstname ?? '') }}" >

adamnet's avatar
adamnet's avatar vincent150...4mos agoLaravel
4
1
Last reply by vincent15000 4mos ago
jon0824's avatar

Optimizing Inertia.js Localization: DB-based translations vs. Static File Generation

Hi, I am working on a project with dynamic language support where translation strings are stored in the database. Currently, these translations are passed via Inertia props on every request, which causes significant bloat in the data-page object (payload). I want to eliminate this overhead. My proposed solution is to export the database translations into a static file (e.g., JS

jon0824's avatar
jon0824's avatar vincent150...4mos agoLaravel
1
1
Last reply by vincent15000 4mos 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.