Respect Respect
0
Hello friends search not working untill i refresh page manually using F5 from keyboard i think livewire compoent stoped render (reload ) in first open of the page . i have to click f5 to refresh the componet manully to make search working after refre...
I am trying to call a livewire component method inside the blade template, but I am getting an "undefined method called" error. Do there any workaround to solve this problem? Livewire Component:: class AskQuestion extends Component { publi...
Mash Square Mash Square
4
How do you run multiple livewire components in the same view? Just like this: <livewire:script-one /> <livewire:script-two /> So far it runs only the first one, if I swap the order of course it runs only script 2 lol I would like to avoid...
Nospoon Nospoon
0
I have a Livewire component user-index which renders a user-element child component for each user entity. The child component contains a modal and a link to open it and perform an action. // user-index.blade.php @foreach($users as $user) <liv...
vincent15000 vincent15000
2
Hello, I have a Livewire component to manage a search form with many criteria. If the article is not in the database, I propose to access to another form which is not in the Livewire component. This second form is simply hidden with class="hidde...
Basti0208 Basti0208
3
Hi guys, it's my first time working with Livewire and I am really confused about what's happening. I have the following component Category: <?php namespace App\Http\Livewire\Shop\Categories; use Illuminate\Support\Facades\Session; use Livewire\C...
I have a really weird bug with livewire. I created a split screen view with a client list on the left side and details of one selected client on the right side. I have two buttons that are controlled by livewire on the detailed view, the update actio...
jmacdiarmid jmacdiarmid
9
I have a companies component and been trying to get this to work for what seems like at least a week. [rant]The Laravel docs are good for some things however it's missing a lot including more FULL examples, not vague partial examples. I've run into t...
Chris1989 Chris1989
2
Hi i want to download all data of a customer table when i click the download button but doesn't work, i get error Method Illuminate\Database\Eloquent\Collection::Total does not exist. I think the problem is related with different settings of render f...
ghbdigital ghbdigital
2
I have a dynamic input form with select option But data isn't getting saved to database while create new User Can anyone help me on this? I am new to Livewire...
Pain12 Pain12
8
Hallo guys, I am trying to send form request from a blade component to a parent livewire component. I can pass data to my blade component and i can send a post request from the blade. But somehow no data is getting send. Validation works fine. It see...
Pain12 replied
Solved
anonymouse703 anonymouse703
1
Hello guys, I'm just using the default dashboard of the livewire. My problem is where I can find the controller or the component livewire for me to pass some data?...
anonymouse703 anonymouse703
1
Hi guys, I made a user management component for the admin to add new users and manage if the user forgot the password the admin have the power to reset the password. I already done storing new users but I stuck in edit.... since I used one modal for...
mvd replied
Solved
Jakub003 Jakub003
1
I am trying to create a custom dropdown to change the icon of a button with alpinejs since I can't have icons or styling with the default select and options html This is the livewire code to update icon public function updateTagIcon($id,$value)...
jmacdiarmid jmacdiarmid
1
I'm trying to do unit testing on my livewire component but I'm running into 2 issues: The assertSeeLivewire method is not found or recognized. PHPStorm is showing a green underline on the method. When I run the test, I'm getting the following error...
sohail49 sohail49
2
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</...
sohail49 sohail49
2
Hi guys i am Using Livewire to create Contact Form But the Problem is When User clicks a Product To get The Quotes That product in the Form Should Be automatically Get Selected it a Model Form Here Is The Code For Select <select wire:model="p...
jrdavidson jrdavidson
0
I’m faced with a problem I can’t understand what’s happening. Currently when the role is changed and meets the correct criteria of the role then it shows the companies dropdown BUT it removes the dropdown of the roles. <?php namespace App\H...
binggle binggle
6
hi I want to run alpinejs function from livewire component. in posts component, function gotcomment(){ $this->emit('gotcomment'); } in posts view <div wire:click="gotcomment"> I will get post </div> in blade. <...
guilherme.franca guilherme.franca
3
Hi there, I'm trying to make a simple create form with Livewire. I want to alert that the validation fails, but the code gets interrupted by $this->validate() and the error pop-up doesn't get emitted. Then I have to use Validator::make to pre-chec...
mDelshad mDelshad
0
i have a two form in livewire but one of the forms not work ! form 1 : <form wire:submit.prevent="sendCodeMobile"> <div class="form-control-wrap"> <div cla...
jmacdiarmid jmacdiarmid
3
I have 2 livewire components. The first is a datatable that renders a paginated index of all records. The second component is used to create, edit and delete. I'm not sure what the best practice is, but I was thinking I should combine them both into...
anis096-dev anis096-dev
1
I want to pass the current selected user id to showmodal in livewire and in every attempt when I click to showmodal button I get this error: trying to get property 'id' of non-object.(in view) and if I delete {{$user->id}} from wire:model="cr...
mvpop mvpop
19
So I have the following route: Route::get('produse/', '[email protected]')->name('arataProduse'); And I return a blade view return view('produse.index'); from [email protected] Now in my blade view I load a Livewire component <livew...
mvpop replied
Solved
prospero prospero
1
Hi guys. Documentation about binding nested data refer to simple example. After bind data to blade elements like // blade <input type="text" wire:model="user.name"> <input type="text" wire:model="user.email...
cwarne cwarne
3
Are there best practices around creating a Livewire based desktop/web app with separate REST API routes to support a mobile application without duplicate code? I had made a few assumptions and have a few concerns: Can Livewire components and API Con...
shimana shimana
4
i'm trying show follower and following list i use this package https://github.com/renoki-co/befriended namespace App\Http\Livewire\Users; use App\Models\User; use Livewire\Component; class Followers extends Component { public User $user; p...
shimana replied
Solved
_midhun _midhun
3
This is my checkin view <div class="form-group col-lg-6 col-md-6 col-sm-12"> <div class="field-label">Date</div> <div class="field-inner"> <input type="text" wire:mode...
_midhun replied
Solved
_midhun _midhun
3
This is my summary.blade.php code -------------------- ------------------------- <div class="form-group col-lg-6 col-md-6 col-sm-12"> <div cla...
Musel Musel
42
Hello, I am attempting to use livewire for the first time. I believe I installed it correctly. When I place the below it is showing on the html page. What could be causing this? @livewireStyles @livewireScripts...
Jean_ali Jean_ali
8
I have an array like this: langs => [0=>'en',1=>'le']; I have Foreach of langs with input like this: <form wire:submit.prevent="store"> @foreach ($langs as $index => $lang) <div wire:key="languages-{{ $index...
elliotk elliotk
1
Hello, I have a Product model which has many Attributes. It could be 1, 2, 5, an unknown number. I display these options on a form, and I want to capture the users selection. I have the following approach. On mount, I loop the attributes and create a...
warpig warpig
2
Hello guys i am building a Livewire component where I have a list of items on a <select> element, when I click on one of them I should be able to see some items displayed on the page, the theme for the component is about a Podcast show and the...
Spyralex Spyralex
5
I have an array and trying to pass it to the view. $products = Product::orderBy('sort_order')->get()->keyBy('id')->toArray(); That returns in php $products = [ 2 => [ "id"=2, "title"="Product2&qu...
wingly replied
Solved
lse123 lse123
1
This posted also here: https://laravel.io/forum/new-applications-only-jetstream-should-only-be-installed-in At: https://jets.laravel.com/2.x/installation.html I see the below>>> // What means? My Laravel 8.x App is under development, but yet...
Create a New Discussion Button