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

vincent15000's avatar

Sort items with AlpineJS - Display bug

Hello, UPDATED => new elements found for this bug, I have created a new post. https://laracasts.com/discuss/channels/livewire/livewire-alpine-alpine-sort-plugin I have this code. <div x-data="{ groups: $wire.entangle('groups').live, activeGroup: $wire.entangle('activeGroup').live, selectGroup(groupId) { this.activeGroup = group

vincent15000's avatar
vincent15000's avatar bvfi-dev7mos agoJavaScript
10
3
Last reply by bvfi-dev 7mos ago
sindyko's avatar

Validate not working in child component

I have a parent component that acts as the core component, unaware of its children. I've tried many different approaches, including trying neural networks on this issue, but it's been no help. So, to avoid asking questions directly, and simply simulating a presentation example, another component is added to the parent component, and no data validation occurs when using any hook

sindyko's avatar
sindyko's avatar sindyko7mos agoLivewire
2
1
Last reply by sindyko 7mos ago
modiparth333-jpg's avatar

Livewire properties are not reactive when set in a method and the view does not update.

modiparth333-jpg's avatar
modiparth333-jpg's avatar modiparth3...7mos agoCode Review
2
1
Last reply by modiparth333-jpg 7mos ago
ella-stinnes's avatar

Duplicate Query when Passing Eloquent Query to Blade Component

I have the following select blade component: @props([ 'id' => '', 'options' => array(), ]) <select name="{{ $id }}" id="{{ $id }}"> @foreach($options as $value => $name) <option value="{{ $value }}">{{ $name }}</option> @endforeach </select> I'm then using this component as foll

ella-stinnes's avatar
ella-stinnes's avatar Snapey7mos agoLaravel
13
1
Last reply by Snapey 7mos ago
anonymouse703's avatar

Cannot add node version in Laravel HERD

I updated HERD version to 1.9.1 and when I try to install another node version it's not working even if I used nvm cli I tried to update through HERD GUI but not installing I even used the CLI user@users-MBP Herd % nvm install v20.16.0 Downloading and installing node v20.16.0... Downloading https://nodejs.org/dist/v20.16.0/node-v20.16.0-darwin-x64.tar.xz... #################

anonymouse703's avatar
anonymouse703's avatar wolfcoder7mos agoLaravel
6
1
Last reply by wolfcoder 7mos ago
tiendungdev's avatar

Buy PHP code to learn

I want to buy a source code for a project about MVC, OOP... to study. My goal is to learn code so I need clear and accessible code. Can someone please show me a demo and cost. or if someone is kind enough to give me some documentation or some good github sourcecode that would be great Thank you.

tiendungdev's avatar
tiendungdev's avatar tiendungde...7mos agoPHP
6
1
Last reply by tiendungdev 7mos ago
lukeboy_2002's avatar

Livewire\Exceptions\MethodNotFoundException

Hi I have a livewire component for adding comments to a post. Now after add a comment I get the error "Livewire\Exceptions\MethodNotFoundException." "Unable to call component method. Public method [createComment] not found on component" I don't get It. This is my comment component. Blade @auth <div x-data="{ focused: {{ $parentComment

lukeboy_2002's avatar
lukeboy_2002's avatar valentin_v...7mos agoLivewire
2
1
Last reply by valentin_vranic 7mos ago
tobz.nz's avatar

Spatie/media-library is is possible to move file to another disk?

I'm migrating files from one cloud service to another - is there an easy way to copy the files and update the DB? I don't want to create new Db records but update the existing ones. Spaties "extensive" documentation is quite lacking in some areas (Love your work Spatie, Honest) Ideally something like: $media->copyToDisk('new-disk', 'optional-new-collection');

tobz.nz's avatar
tobz.nz's avatar ahmedde7mos agoCode Review
6
2
Last reply by ahmedde 7mos ago
OG_Neverland's avatar

How to modify a credential auth in laravel 12 livewire starter kit?

So, I have an idea for built a web app counseling for school support, and I want the credentials is using a student id and for teacher also using teacher id, but for admin using an email or maybe can use an custom username too. But how i modify a laravel 12 livewire starter kit? any solutions for this? thank you if you guys give me a feedback or answer

OG_Neverland's avatar
OG_Neverland's avatar jlrdw7mos agoLivewire
1
4
Last reply by jlrdw 7mos ago
Mati365's avatar

CKEditor 5 Livewire integration

Hi! Since I started learning Laravel and Livewire, I wanted to build something useful. So I made a CKEditor 5 integration for Laravel and Livewire. Hopefully, it will be helpful to someone. Feedback is welcome! Link: github.com/Mati365/ckeditor5-livewire

Mati365's avatar
Mati365's avatar Mati3657mos agoCode Review
0
1
finchy70's avatar

Native PHP Windows App

I have built a small desktop app with Native PHP and want to run it on my own PC. Is it possible to build an executable to install on my PC without signing the code. The process looks drawn out and complicated and looks expensive too. Any information would be greatly recieved.

finchy70's avatar
finchy70's avatar Tray27mos agoDesign
2
3
Last reply by Tray2 7mos ago
Romflz's avatar

Windows very slow?

Hi all, so im a bit new to the eco system. I come from JS/TS heavy background and im mainly a vue dev. I have installed the laravel vue starter kit, and running composer run dev, as it suggest, takes around 500ms to get a page response? Which is extremely slow. When I use herd, its much better, around 200-300ms, but it's still not good for something like a login page honestly.

Romflz's avatar
Romflz's avatar Glukinho7mos agoLaravel
4
1
Last reply by Glukinho 7mos ago
Morph-UK's avatar

I built a debugger that lets you run dump() and view on a single live page

Works with Laravel 9 to 12. Here: https://github.com/chisnall/squiz

Morph-UK's avatar
Morph-UK's avatar LaryAI7mos agoDevOps
1
1
Last reply by LaryAI 7mos ago
stevenh1901's avatar

Laravel Horizon only catching some jobs

Hi! I'm hosting laravel horizon on my server, but it's only catching some jobs. Below is configuration options. The EC2CreateSnapshot job kicks off another job (EC2CheckCreateSnapshotStatus), but i'm not seeing it in horizon. I see the job in telescope with a status of pending but it just stays there. I also see the job in the database under the jobs table... but I'm not using

stevenh1901's avatar
stevenh1901's avatar stevenh190...7mos agoLaravel
9
1
Last reply by stevenh1901 7mos ago
FrankMawn's avatar

Test custom email headers

Laravel docs provides a way to add custom email header. Does anyone know how to assert that the header was included when sending the mail message? I've tried everything (Notification fake, Mail fake) and can't seem to be able to hook into the mail building process to do the assertion on the header.

FrankMawn's avatar
FrankMawn's avatar FrankMawn7mos agoTesting
2
1
Last reply by FrankMawn 7mos ago
andrews-quest's avatar

How to approach creating multiple versions of a ressource controller's index?

Hi, I have a bunch of calls, which I need to return sorted by different columns (/calls/datetime, /calls/operator etc.). What'd be the correct approach in this scenario? Should the index() function of the CallController capture the URL parameter and base it's output based on that? Should it be split into multiple functions?

andrews-quest's avatar
andrews-quest's avatar andrews-qu...7mos agoLaravel
12
1
Last reply by andrews-quest 7mos ago
tuncdogu55's avatar

Laravel Media Library — How to attach the same uploaded file to multiple models?

Hello, I’ve been working with the Spatie Laravel Media Library package and ran into a common problem when trying to attach the same uploaded file to multiple models (for example, both a Course and a Product model). When I do something like this: foreach ($images as $image) { $course->addMedia($image)->toMediaCollection('images'); $product->addMedia($image)->

tuncdogu55's avatar
tuncdogu55's avatar tuncdogu557mos agoCode Review
1
1
Last reply by tuncdogu55 7mos ago
xtopher's avatar

Admin and Customer App on the same Repository

I am working on a project that features a heavy (static assets) admin portal and a relatively lightweight customer portal. I started the project with both the admin and customer sides on the same repo. I have a few concerns: Will it be a concern for PCI-DSS certification? Should I use two Vue entry points for improved asset bundling, or should I separate them into two reposito

xtopher's avatar
xtopher's avatar jlrdw7mos agoGeneral
7
1
Last reply by jlrdw 7mos ago
Dhamo's avatar

Ziggy expose all laravel routes

I'm using Laravel, Inertia and Vue in my application. By default laravel uses Ziggy to use route() in vue file. So i can clearly see my routes in the inspect element mode. Will that be a security issue in production?

Dhamo's avatar
Dhamo's avatar coder-manj...7mos agoGeneral
14
9
Last reply by coder-manjeet 7mos ago
minaremonshaker's avatar

Testing Best Practices: Is Using Foreach Loops in Tests an Anti-Pattern?

I'm working on my Laravel test suite and I've noticed I'm using foreach loops in several of my tests to iterate through different scenarios or test data. While this approach seems efficient for testing multiple cases, I'm wondering if it's considered a good practice or if there are better alternatives. My concerns are: If one assertion fails, does it stop the entire test? Does

minaremonshaker's avatar
minaremonshaker's avatar minaremons...7mos agoTesting
7
1
Last reply by minaremonshaker 7mos ago
mankowitz's avatar

Queued emails are (intermittently) not sent, but jobs are completing successfully.

I have queued emails which work... some of the time. After a few hours, the queued jobs are created, processed and marked as done, but there is no communication with the smtp server (microsoft exchange). Some relevant code is below: In the controller: // $bcc = list of addresses Mail::to('[email protected]')->bcc($bcc)->send(new NewPatientNotifi

mankowitz's avatar
mankowitz's avatar yacine_df7mos agoLaravel
6
1
Last reply by yacine_df 7mos ago
makhlugjafarov's avatar

Recurring Issue with Missing api.php and Service Providers in Fresh Laravel Installations

Hello Laracasts Community, I'm encountering a persistent issue with Laravel installations on my macOS environment and I'm seeking insights or advice from the community. Issue Description: In every new Laravel project I create, I'm noticing that the api.php file is missing from the routes directory. Moreover, the app/Providers directory is lacking several of the standard service

makhlugjafarov's avatar
makhlugjafarov's avatar mah3uz7mos agoLaravel
3
1,609
Last reply by mah3uz 7mos ago
shaungbhone's avatar

Spatie Laravel PDF error

I got an error with spatie laravel pdf. I already installed all requirement from docs. Using - Mac - Safari - Herd The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=`npm root -g` node '/Users/shaungbhone/Herd/weshop/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"file:\/\/\/var\/tmp\/89399023-0225763001727011898\/index.html"

shaungbhone's avatar
shaungbhone's avatar shaungbhon...7mos agoLaravel
2
1
Last reply by shaungbhone 7mos ago
bjugan's avatar

Maximum one job waiting in queue

Hi, I have a job that synchronizes data from system A to system B, by finding and synchronizes all changed data in system A since the last job run. This job is dispatched to queue when data in system A changes. This can sometimes happen multiple times per second. I can only run one of these jobs at a time to prevent a race condition, and I use the WithoutOverlapping middleware

bjugan's avatar
bjugan's avatar bjugan7mos agoLaravel
14
1
Last reply by bjugan 7mos ago
j-miller-dev's avatar

PHP & MYSql book worth working through?

I'm on the "path". I know this book is optional but did anyone work through it and find it helpful with consolidating knowledge? Thanks :)

j-miller-dev's avatar
j-miller-dev's avatar LaryAI7mos agoPHP
1
1
Last reply by LaryAI 7mos 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.