2,696 questions
0
votes
1
answer
35
views
Fail on save record on a modal in button action at header of infolist - filament laravel
Fail on save record on a modal in button action at header of infolist - filament laravel
I have a page view AgendamentoView. That display infolist of an Agendamento (schedule). Each schedule have one ...
0
votes
0
answers
77
views
Uncaught ReferenceError: Alpine is not defined in Laravel Livewire app
Context:
I am using Laravel 8 with Livewire.
Alpine.js is installed via npm in my package.json:
"devDependencies": {
"alpinejs": "^3.15.2"
}
I am not using a ...
0
votes
0
answers
26
views
How to render a specific livewire component?
I have multiple livewire component wrapped insisde the if condition. I am able to load the initial page however the page just crashes whenever I go to the next step.
<div class="flex flex-col ...
0
votes
0
answers
44
views
How to Keep Filament Tenant Registration Loader Visible Until Redirect
I am using Filament 4.x with Livewire 3.x to build a tenant registration page. I have a custom loader that should display when the user clicks the register button.
The registration button is rendered ...
0
votes
0
answers
27
views
Filament 4 form with nested repeaters is very slow to load and render
Select::make('category_id')
->options(fn () => static::getChecklistIncidentCategoryOptions(true))
->columnSpanFull()
...
3
votes
1
answer
225
views
Is there a good way to gracefully handle bad method calls in Livewire?
I'm making most of my components extend from an abstract class where I register some exception handling using the exception lifecycle hook:
use App\Livewire\BaseComponent;
class MyComponent extends ...
1
vote
1
answer
63
views
Sweetalert2 is not being shown
I'm using Laravel 12 and Livewire 3, and now I'm trying to use sweetalert2 in component file.
Here is what I've already done:
install sweetalert2 :
npm install sweetalert2
in resources\js\app.js :
...
2
votes
1
answer
109
views
Custom File upload Component in Livewire Laravel
I am trying to create a reusable Livewire input-file component, Such that :
Easy embed in any (parent) and pass the model name (ex = "file1")
How to store() the file is in control of (...
0
votes
1
answer
60
views
The blade not calling a function in the component
I hava a modal within a blade view(criteria.blade.php and i want this modal when triggered and filled to call the function with a component(Criteria.php) which sends data to the database but the ...
0
votes
0
answers
31
views
How to properly coordinate consecutive Livewire 3 events between sibling components to reflect loading state in Alpine.js?
I have two sibling Livewire components: a country select and a city select. When the user selects a country, I want to:
Notify the city select to show a loading spinner (via loading-cities event)
Load ...
0
votes
0
answers
29
views
Filament dynamic RichEditor field returns 'undefined' when creating a new record
I’m building a dynamic form in FilamentPHP where ContentType stores field definitions in JSON. I created a trait to map each field into a Filament component like this:
trait BuildsDynamicFields
{
...
0
votes
0
answers
85
views
"Target class [livewire] does not exist" issue with laravel 10 only on production server
I have an issue with my code in production Heroku (running without problem locally).
I get the error Target class [livewire] does not exist
This is the code in my AppServiceProvider which triggers the ...
1
vote
0
answers
86
views
Livewire pagination with collections and calculated fields
I have an issue where I need to paginate an eloquent collection that has calculated fields, fields not in the database. Livewire's WithPagination trait only wants to be applied to an Eloquent query ...
-1
votes
1
answer
163
views
Binding Livewire nested data insertion using Alpine js
In screenshot below i have a set of data insertion which contains each parent might have o to 6 children :
when i try to get data in my livewire blade (the part facing issue) like below:
<div ...
1
vote
1
answer
305
views
Flux UI modal close button not working in fresh Laravel 12 + Livewire project
I just created a fresh Laravel 12 project using the Livewire starter kit and added Flux UI.
Steps I followed:
laravel new my-app
# Selected starter kit:
> livewire
Then I followed the Flux UI ...
0
votes
1
answer
143
views
Filament upload file not moving image to destination folder
I'm using Filament 3.2 on Laravel 12, I just moved the project on a new server. On the old server this problem did not happen. That's the definition of the field
Forms\Components\FileUpload::make('...
0
votes
0
answers
74
views
How to run JavaScript only after Livewire finished updating the DOM?
I’m using Livewire 3.6.3 with a chart (ApexCharts).
On my Livewire component I dispatch an event:
$this->dispatch('update-chart', $this->report['chart_data']);
And in JS I listen to it:
...
0
votes
0
answers
52
views
Laravel 12 + rappasoft package using pivot data
I have the following data model(equipment rental):
order(id,client_id,status),
equipment(id, title, rental_price, status, category_id).
equipment_unit(id, equipment_id, code)
order_items(order_id, ...
0
votes
0
answers
82
views
Why my drag and drop menu is not working?
I'm building an admin menu manager with Laravel Livewire and SortableJS. The drag-and-drop UI works perfectly but I can not reorder menus and nested submenus visually.
I have a recursive function in ...
0
votes
0
answers
92
views
Laravel Livewire error overlay <iframe> stays blank when throwing exception
Background
I have a Livewire 3.x component that displays a confirmation modal for deleting a page. When I deliberately throw an exception in my action, Livewire shows the dark “error” overlay, but the ...
0
votes
0
answers
76
views
Livewire subdomain file upload CSRF issues
I'm using livewire 3 with an implementation using multiple subdomains. Initially i've had multiple CORS errors trying to fetch resources from other subdomains, which was solved by adding livewire/* ...
1
vote
3
answers
214
views
Is it possible to manually reject files in a FileUpload before the form gets submitted?
In a Filament form I have the following field:
FileUpload::make('Files')
->acceptedFileTypes(self::$filetypes)
->disk('local')
->moveFiles()
-&...
1
vote
2
answers
104
views
I'm having an issue with my query when using pagination and offset in Livewire 3
I'm having trouble with my query when using pagination and offset in Livewire 3. My query is supposed to display the latest articles, but I want to offset 4 articles because I've already created a ...
0
votes
0
answers
146
views
How does the $tooltip in this filament hintAction work?
I've got this text input field with a little copy to clipboard button
Forms\Components\TextInput::make('idp_xml')
->label('Generated URL')
->disabled()
->...
0
votes
2
answers
102
views
Filamentphp v3 hide RenderHook if sidebar is collapsed
How do I hide a custom blade (PanelsRenderHook) on my sidebar if sidebar is collapsed.
class AppServiceProvider extends ServiceProvider
{
public function register(): void
{
}
...
1
vote
2
answers
397
views
File Upload Suddenly Stops Working in Laravel 12 with Livewire on Laragon
I am developing an application using Laravel 12 and Livewire, hosted locally on Laragon. Initially, the file upload feature worked perfectly. I was able to upload images successfully, and they were ...
0
votes
0
answers
92
views
How to increase the searching speed - Laravel, Meilisearch/Scout, Powergrid
I'm using Laravel Scout with Meilisearch inside a PowerGrid Livewire component to implement full-text search on a Product model. The search function works as expected, but it's noticeably slow taking ...
0
votes
0
answers
32
views
500 Error when uploading file on ElasticBeanStalk using Livewire
I'm trying to upload an image of 50kb to AWS S3 using Livewire. As soon as I select the image for upload, a 500 error pops up. I have tried tracking the issue but I have not being successful. Although,...
1
vote
1
answer
53
views
Livewire: component not reloading when switching routes with same view
Problem explanation
I'm using Livewire with an abstract base component (AbstractRecipeList) that handles common logic like render() and returns the same view (livewire.recipe-list) for all child ...
0
votes
1
answer
166
views
Laravel livewire starter kit - how to change login from email to username
I'm updating an old php app where the client logs in using username and I have to keep the same functionality. I've changed email to username in the livewire/auth/login.blade file
<flux:input
...
0
votes
1
answer
92
views
Reusable sorting & pagination logic for multiple Livewire components. Livewire 3
Goal: Create reusable sorting and pagination logic for multiple Livewire components.
Description of the problem:
RecipeList.php is responsible for filtering recipes based on URI parameters, as well as ...
0
votes
0
answers
71
views
Livewire 3.0 Component returns 404 error when using Model::get() but works with Model::get()->toArray() - why?
I faced a strange 404 error when working with Livewire 3.0 (maybe because I use nested components - didn't tested on a single component yet) when passing a Model Object to the data of the view of a ...
0
votes
0
answers
70
views
AlpineJS data() causing Uncaught ReferenceError on first-time page load
I am not an AlpineJS expert.
I am trying to use Alpine JS in a Laravel Blade component to use the SignaturePad library to capture a signature. My code, cribbed from somewhere else, is below and has ...
3
votes
1
answer
151
views
Livewire Flux and Tailwind list items
I'm having an issue and I think it might be with Tailwind4, I haven't really used Tailwind before. But now since I am using Livewire Flux, I have an issue with the Flux editor, or at least, with ...
0
votes
1
answer
92
views
Problem with wire:key for livewire component inside blade component. Livewire 3
Problem description:
In my RecipeList.php I am showing the list of recipes:
@forelse($recipes as $recipe)
<x-recipe-card :recipe="$recipe"/>
@empty
<p>error</p>
@...
3
votes
1
answer
277
views
Laravel Livewire Starter Kit - Tailwind broken out of the box?
I've come across a very strange issue working on a new project with the Laravel Livewire starter kit. It appears that Tailwind is not working out of the box?
After doing a fresh laravel new test ...
0
votes
0
answers
37
views
Livewire 3 component not rendering inside Laravel Jetstream (Livewire stack) layout
I'm building an admin panel using Laravel 11, Livewire 3, Jetstream (Livewire stack), and DaisyUI. I've created a Livewire component, registered the route, and tried to render it inside a Jetstream ...
0
votes
1
answer
191
views
Livewire 3 Pagination Links Not Working (Not Reactive)
I'm building an admin panel for an e-commerce site using Laravel 10/11, Livewire 3, Jetstream (Livewire stack), and DaisyUI (for styling). I have a Livewire component (CategoryManagement) that ...
0
votes
0
answers
37
views
Livewire /upload-file not triggered when selecting a file
I have a Livewire Component Import.php:
<?php
namespace Modules\Donor\app\Livewire\Modals;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\...
1
vote
0
answers
89
views
Instant response of the Like/Dislike buttons using Alpine.js in Livewire 3
I have logic for like/dislike button in two separate livewire components (LikeButton.php/DislikeButton.php)
The problem is I want like/dislike buttons react immediately after clicking
After clicking I ...
0
votes
3
answers
196
views
spatie/livewire-filepond validation acceptedFileTypes always fails
What happened?
I'd like to validate uploaded file type to be sure it's an image:
<x-filepond::upload
wire:model="photo"
allowImagePreview
imagePreviewMaxHeight="200"
...
0
votes
1
answer
77
views
Laravel Livewire cascading dropdown not being populated
Laravel 12
Livewire 3.6"
Hi,
I Found two posts with solution to this issue, but doesn't answer my issue.
The three cascading dropdowns (countries, states, cities) are rendered correctly in the ...
1
vote
2
answers
80
views
How to set current_team_id when user accepts Jetstream team invitation by email to the Team id of the Admin inviting him?
I am developing an App that uses Jetstream registration as well as teams. With my App users join App once and they stay, so I need set current_team_id to user when he/she accepts invitation via email.
...
0
votes
1
answer
50
views
laravel Cookies and session not setting on client's browser in production
working on a laravel project, Cookie and session stopped setting on client's browser in production but work on localhost.
every form submission is not getting to controller and returned 419 page ...
1
vote
0
answers
123
views
How to Use Laravel Reverb with the Livewire Starter Kit in Laravel 12?
I'm trying to use Laravel Reverb in a Laravel 12 application. I've gone through several tutorials and documentation, but almost all of them implement authentication using Laravel Breeze. However, with ...
0
votes
0
answers
49
views
Laravel Livewire Starter Kit not receiving a Laravel notification broadcast via echo
I have the folllowing noitification:
<?php
namespace App\Notifications;
use App\Models\Comment;
use App\Models\Ticket;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Bus\Queueable;
...
0
votes
4
answers
169
views
Livewire 3.6.10 with Laravel 11: wire:model not binding input value after page refresh
I'm working with Laravel 11, Livewire 3.6.10, and Alpine.js (properly configured). I'm encountering an issue where wire:model doesn't bind the value to an input field after a page refresh, even though ...
0
votes
0
answers
59
views
Why is Livewire throwing 404 depending on call to retrieve article from DB?
I'm using Laravel 12 and Livewire 3 and have a very particular problem.
On individual article pages, when interacting with a Livewire component, I get a 404 error for /livewire/update if in the model'...
0
votes
0
answers
47
views
How to find and remove injected script on Filament login page?
Someone injected an online gambling web script into my Filament website. I saw they inserted scripts in root, public, storage, and vendor folders. I have found some scripts, but there are still ...
0
votes
1
answer
148
views
Livewire 3.6.10 with Laravel 11 – wire:click, wire:submit, and wire:model not working
I'm using Laravel 11 with Livewire 3.6.10 and have Alpine.js properly configured. I'm facing an issue where Livewire actions such as wire:click, wire:submit, and wire:model are not working as expected ...