NicolasJ NicolasJ
5
Hi there, I am looking for a library to mask input in a Laravel Livewire project. Any suggestions ?...
Mikegk Mikegk
5
Hi guys, I implemented an livewire uploader. Everything works like a charm. A user can select multiple files which will be uploaded then. So the only thing I do not really get to work, is the "removeUpload" method which I want to call from...
Greg123 Greg123
5
I'm new to Livewire and have been reading their docs. I have also been searching for the best tutorial series explaining how to create a basic Blog with more than one model (e.g., users, comments, posts). Does anyone know a good tutorial series?...
So TurboLinks is no longer in development. So how are you making your SPA now?...
Mikegk Mikegk
3
Hi guys, how can I upload huge files with livewire? I already upgraded valet / nginx and everything - but livewire seems to reject bigger files { "files.0": [ "The files.0 may not be greater than 12288 kilobytes."...
HosseinHasanpouri HosseinHasanpouri
3
Hello guys I want to find way in livewire to by pass temporary upload for example when i upload image with livewire and s3 i dont want first image move to livewire-tmp on s3 and then i should copy that to another folder with storeAs function i want u...
proxomos proxomos
13
I have a collection from the following query: $this->casedata = \App\Models\RepairCase::with(['product']) ->where('case_number', $casenumber) ->get() The output from this is: => App\Models\RepairCase {#5296 id: 4, custome...
HosseinHasanpouri HosseinHasanpouri
2
Hello Everyone , I was use livewire in my laravel project and i use that to upload some Music and Image files i was make progress bar with js for both and when i use both of components in one blade template , i want upload music and progress bar of b...
SunnyBoy SunnyBoy
13
Hi, Has anyone got this working? I want to use Livewire but hate the fact that the forum seems not open for ALL. Or may be i could't find a way to post my issue at least... anyways coming back to the topic. I am using https://github.com/realrashid/sw...
sayedsadat sayedsadat
11
Here is the layout structure <div class="content" > <div class="container-fluid" id="app"> @yield('contents') </div> </div> the following is the component's blade file @extends...
jmacdiarmid jmacdiarmid
4
I'm having trouble with a button used to delete records and should display a confirmation dialog prior to deleting the record. I've read through the docs several times over and it's not clicking in my head. I've also tried some of the examples but...
aurawindsurfing aurawindsurfing
4
Hey everyone! Just playing around with a progress bar in livewire and can not figure out how to refresh this div after public property $width changes on the component: public $width = 1; <div> Processing transactions ... <div class="h...
sohail49 sohail49
0
Hi i am create a tags input and i am using alpine and livewire but the problem is i only get the value last tag and the the other tags Tags Input <label for="sizes" class="block font-medium text-sm text-gray-700">Sizes</...
anonymouse703 anonymouse703
6
Hi guys I have to image to upload (profile and sketch), What is the best way to upload it in database? So far, this is what I did but it's definitely missing some code. public function store(){ $action = ''; $data = $this->valida...
anonymouse703 anonymouse703
4
Hi guys I want to pass relationship data into the livewire component for the select but when I dd there's no data in my relation[] This is how I did it. in my Customer Model public function gender(){ $this->hasOne(Gender::class,'gender_id'...
sayedsadat sayedsadat
1
I have a laravel Model Contact.php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Contact extends Model { use HasFactory; protected $fillable = ['name','email']; }...
warpig warpig
3
Hi guys im looking to implement a button that when clicked, should make a text input update. I've tried in 2 different ways one by using the property of wire:click="updateCategory" on the button and the other by using the HTML Form tag, ess...
thinkerytim thinkerytim
2
I'd like to use the jetstream saved notification: <x-jet-action-message class="mr-3" on="saved"> {{ __('Password saved, please refresh.') }} </x-jet-action-message> in my own livewire component. I'm em...
neomuckel neomuckel
10
Hello, today i go my first steps in livewire and i have a problem with my script. i want assign my user to a vehicle, i fetch the users in a select field from my vehicle form and when i click on a user i got this message. "Property [$user] not f...
anonymouse703 anonymouse703
10
Hello guys, my one CRUD modal is working now but I noticed some bug... When I click the edit button the modal will populate the data based on the id I selected but when I closed the modal and click 'Add New Contacts' button the previous data was stil...
rculver rculver
1
Using the "mount" method I am able to get the button on each post to show the modal with it's proper corresponding post-data. However, the second post button only works if "$this->show()" is contained in the mount method. The i...
Jakub003 Jakub003
3
I have 2 separate livewire components that use the same Model. I am a bit lost with how the hydrate stuff works. First component is create_kanban_form.php this is essentially just a button, that I can click and it would generate a new project. <di...
JoshUK JoshUK
3
Good Afternoon all! So I've been looking into the Voting App on the series section - which is awesome btw. I've decided as a little side project I wanted to improve the public source code - add things that were missing etc. I must admit my livewire k...
JoshUK replied
Solved
vincent15000 vincent15000
11
Hello, I have a livewire component to upload files with a doctype select and an upload field. When I select a doctype in the select field, the selected doctype don't remain and the select field maintains / reloads the initial value. I wonder if the p...
timgavin timgavin
2
I've moved my registration form away from Laravel UI and into Livewire, so that all of the database work, user creation, etc. is now handled in the Livewire controller. views/auth/register.blade.php uses a component template and contains the Livewire...
david19 david19
0
Hello Team. I intercreated ckeditor5 with livewire and alpine.js via a the cdn. It works! But now i will configur the toolbar, but it doesnt work. That is the downside, if your javascript acknowledge is bad. This is my code and it work.. <div wire...
Hello, After logging in through Fortify (I'm using Fortify on my own, not with Livewire), the Session ID resets. I know that's for security and that's fine. But I have a shopping cart system and of course I want the user to keep the shopping cart als...
BasV replied
Solved
chaudigv chaudigv
5
Using livewire $rules to validate date. protected $rules = [ 'start_date' => ['required', 'before_or_equal:' . Carbon::today()], ] gives error Constant expression contains invalid operations I even moved the initialisation to mount(), but it pro...
timgavin timgavin
2
I'm using Livewire on my registration form and want to catch all database errors with try/catch. I have several tables in which to insert data, so I'm putting everything in a transaction and will rollback if any exceptions. Here's a stripped down ver...
kulmacet kulmacet
1
I seem to be having a livewire performance issue, is this normal? I have a form that has data for it. When I open this form the form shows up with no data then about a second later the data shows up. In my developers tools the page shows a 2 second t...
jmacdiarmid jmacdiarmid
4
In my render method, I'm trying to retrieve all records ordered by Id and Desc $contracts = Contract::orderBy('id', 'desc'); return view('livewire.contracts', compact('contracts')); In my blade view of the component, I'm using $contracts to build...
Jakub003 Jakub003
7
I haven't been able to find anything relating to an action to submit an update request when we click away. Something like wire:clickaway = "update( {{ example -> id }} )" Essentially, I am trying to create the effect of when a user click...
Snapey replied
Solved
warpig warpig
3
If I made a <form> on a Livewire component and then gave it a method to submit, do I still need to type all of that logic inside of the Controller? <form class="mt-6 flex flex-col p-4 space-y-4" wire:submit.prevent="su...
tykus replied
Solved
I have a Livewire component to open a modal, with a dynamic view inside, so I can use it for multiple use cases in my application (using an event). It works fine, but I can't get the transitions to work. I tried Tailwind classes (it's a Tailwind slid...
mDelshad mDelshad
6
hi guys Suppose we have a button that, when clicked, executes a function. Now we want to put a timer instead of the text of the button when the button is clicked and that function is executed, for example 60 seconds and after 60 seconds the button re...
Create a New Discussion Button