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

VincentCP's avatar

Laravel Livewire 3 Global Modal Issue: BindingResolutionException when using Livewire.dispatchTo

Hi! I have been trying to make a reusable global modal for confirmation purposes on livewire. I had encountered various issues in making this work. My current situation is that I managed to make the modal working by having double roundtrip (from frontend-alpine -> my global modal component method call -> target component). I wanted to make it to be direct (frontend-alpine

VincentCP's avatar
VincentCP's avatar valentin_v...7mos agoLivewire
12
1
Last reply by valentin_vranic 7mos ago
Brian Kidd's avatar

Testing console command with $this->info causes error

I have a simple console command with the following handlemethod: public function handle() { foreach (Team::all() as $team) { $this->info("Adding missing default roles for team {$team->name} ..."); Role::createDefaultRolesForTeam($team); $this->info("Missing roles added for team {$team->name}."); } return Command::SUCCESS; } Wh

Brian Kidd's avatar
Brian Kidd's avatar fupa7mos agoTesting
4
8
Last reply by fupa 7mos ago
SeanKimball's avatar

Nested scoped routes

I have an application that I would like to be able to attach notes to various types of models through nested scoped bindings. /** * Note Routes - Using scoped bindings for polymorphic relationships */ Route::scopeBindings()->group(function () { Route::post('projects/{project}/notes', [NoteController::class, 'store']); Route::put('projects/{project}/notes/{note}', [NoteCont

SeanKimball's avatar
SeanKimball's avatar Glukinho7mos agoCode Review
3
1
Last reply by Glukinho 7mos ago
dmytroshved's avatar

Problem: Fake users on my hosted website

Hey everyone, everyday I see some randomly generated users on my website Their names and emails are randomly generated due to weird syntax Example: name: ozMQinpg email: [email protected] I am confused who and why creates those fake users How can I protect my website from those random users? Would be grateful for your help Best regards

dmytroshved's avatar
dmytroshved's avatar jlrdw7mos agoGeneral
11
1
Last reply by jlrdw 7mos ago
jj63systems's avatar

V3 - Create and Create Another - unable to populate new record instance fields

Hi all, struggling to understand in Filament v3 how to utilise the 'Create and Create Another' feature - by default the new record is saved and the same form is then presented blank for entry of new record details. I want to pre-populate with a subset of the data just saved - which methods to I hook into in order to do this? thanks for any pointers j

jj63systems's avatar
jj63systems's avatar jj63system...7mos agoFilament
2
1
Last reply by jj63systems 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 valentin_v...7mos agoLivewire
2
1
Last reply by valentin_vranic 7mos ago
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
1
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
3
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
15
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
1
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
5
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
1
Last reply by coder-manjeet 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.