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

CrastyCrap's avatar

Livewire paginator problem

i am trying to make paginator by livewire but the problem is the page parameter change when i click on page buttons but the new page doesn't load and no data change and here is my code namespace App\Http\Livewire; use App\Models\Hotel; use Livewire\Component; use Livewire\WithPagination; class HotelLoad extends Component { use WithPagination; protected $pagination

CrastyCrap's avatar
CrastyCrap's avatar MohamedTam...4yrs agoLivewire
1
1
Last reply by MohamedTammam 4yrs ago
Constantine_92's avatar

Hi guys i face a problem i want when i selected categories appear all sub categories that belong on this categories.

I try with updated method and work but if i click on first categories the second was dissappear as follow and if click second third dissappear. My livewire component use WithPagination; protected $paginationTheme = 'bootstrap'; public $SelectedCat = []; public $subcategories= []; public $SelectedSubCat = []; public $SelectedTag = []; public $search=""; public $loc

Constantine_92's avatar
Constantine_92's avatar Constantin...4yrs agoLivewire
0
1
rotfn's avatar

It gives an error when I select a photo in the Livewire component

My project is with Laravel and Livewire There was no problem in the local environment, I could easily select the photo and show it in the preview, and the photo would be uploaded. But when I got the project on the server When I select a photo in a form, it gives me an error: Image file upload was not successful. I tried all the ways from changing the disk upload file to executi

rotfn's avatar
rotfn's avatar rotfn4yrs agoLivewire
2
1
Last reply by rotfn 4yrs ago
Vinciepincie's avatar

Bootstrap 5 modal with dynamic content, collection properties don't work

Hi i have a html table, and every row in the table has other content. Every record has a button that opens a bootstrap modal with more info. I noticed i can't use collections in this, and i don't understand why and how to solve it properly. If i pass a normal variable it seems to work fine, this however doesn't work with an one to many relation. What causes this and how to solv

Vinciepincie's avatar
Vinciepincie's avatar Vinciepinc...4yrs agoLivewire
1
1
Last reply by Vinciepincie 4yrs ago
QAV's avatar

Livewire with jqueryUI Autocomplete - not passing clicked on autocomplete value for search

I'm having trouble passing the clicked on autocomplete element's value to my livewire search function when I click my search button. The search and autocomplete work, except that when I clicked on an element from the autocomplete dropdown that value is not what is passed to my live wire render function, only the manually typed-in characters are passed. So for example, if I type

QAV's avatar
QAV's avatar BootDev4yrs agoLivewire
1
1
Last reply by BootDev 4yrs ago
Zoul's avatar

Passing category id to livewire class not working

Hi all, I've Category class that has manyToone relation with posts, i'm showing category's name with the number of its posts, then when a user click on it, i'm taking the category id to CategorySideList livewire and getting all its posts and then showing them to user in category-side-list livewire component, what i got from the doc, that i can pass id to livewire class Category

Zoul's avatar
Zoul's avatar Zoul4yrs agoLaravel
15
1
Last reply by Zoul 4yrs ago
linux_guy's avatar

livewire Data Binding not working

Hi, Data Binding in livewire is not working for me i don't get what can someone please help me out :) <?php declare(strict_types = 1); namespace App\Http\Livewire; use Livewire\Component; use Livewire\WithPagination; class Search extends Component { use WithPagination; public $name = ''; protected $queryString = [ 'name' => ['except' => '']

linux_guy's avatar
linux_guy's avatar Snapey4yrs agoLivewire
4
1
Last reply by Snapey 4yrs ago
Respect's avatar

search not working untill i refresh page manually using F5

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 refresh search is working my code // index.php <?php namespace App\Http\Livewire\Admin\Program; use App\Models\Program; use Livewi

Respect's avatar
Respect's avatar prospero5yrs agoLivewire
5
1
Last reply by prospero 5yrs ago
Ajvanho's avatar

View [custom-pagination-links-view] not found.

I follow the docs but have an error: <?php namespace App\Http\Livewire; use Livewire\Component; use App\Models\Transaction; use Livewire\WithPagination; class AdminTable extends Component { use WithPagination; public function render() { return view('livewire.admin-table', [ 'transactions' => Transaction::paginate(25) ]); } pu

Ajvanho's avatar
Ajvanho's avatar IvanRadoje...5yrs agoLivewire
2
1
Last reply by IvanRadojevic 5yrs ago
Neeraj1005's avatar

Livewire\Exceptions\PropertyNotFoundException Property [$searchItem] not found on component: [landing-page.right-sidebar]

In my project my trying to make a search box. But I have two livewire component one in list-post part and another is right-side-bar. Imgur This is my list-posts.blade <div> <div class="row featured-post-heading"> <div class="col-md-12 mt-5 mb-3"> </div> </div> <div class="row">

Neeraj1005's avatar
Neeraj1005's avatar vincent150...4yrs agoLivewire
1
1
Last reply by vincent15000 4yrs ago
alexteie's avatar

livewire auth::user()

Why is my Auth::user() NULL ? in the view its normal namespace BASE\Livewire\Settings\Users; use Illuminate\Support\Facades\Auth; use Livewire\WithPagination; use Livewire\Component; use BASE\Tenant; use BASE\Lbzuser; class Show extends Component { use WithPagination; protected $paginationTheme = 'bootstrap'; public $Tenants; public function mount() { $this->T

alexteie's avatar
alexteie's avatar Snapey5yrs agoLaravel
14
1
Last reply by Snapey 5yrs ago
jrdavidson's avatar

Sorting A Livewire Component with a Concatenated String

I'm looking to find out how I can sort a field inside of my Livewire component that contains an accessor. The accessor is called full_name which is made up of title, first_name and last_name. Currently inside of my view I am displaying the name as title+first_name+last_name, however for a listing of people's names it should be viewed as last_name,+title+first_name. What is sug

jrdavidson's avatar
jrdavidson's avatar rodrigo.pe...5yrs agoGeneral
7
1
Last reply by rodrigo.pedra 5yrs ago
Atef95's avatar

Livewire rendering scripts

Hey artisans I'v an issue with livewire , my scripts are no more working when I livewire repopulate the dom I've tried both wire:ignore and events The dropdown button is not working! this is the code ShowCountries component <?php namespace App\Http\Livewire; use App\Modules\Country\Models\Country; use Livewire\Component; use Livewire\WithPagination; class ShowCountries

Atef95's avatar
Atef95's avatar Atef955yrs agoLivewire
0
1
jrdavidson's avatar

Livewire Sibling Components Sharing Data

I"m trying to learn to do some additional things with my livewire components so that they can communicate together. What I would like to do is echo out the total number of active users in the span and be able to pass in the entity to display, in this case, Users would be the entity. The reason for that is because this used on multiple pages. <livewire:data-tables-total&

jrdavidson's avatar
jrdavidson's avatar xtremer3606yrs agoLivewire
1
1
Last reply by xtremer360 6yrs ago
gidaban79's avatar

Vue and rating system

Hello guys in beautiful Sunday:) let start from code :) my vue component: <template> <div class="container px-0 mt-4"> <div class="row align-items-center"> <div id="review" class="col-12 card mt-4 pt-3"> <div class="row"> <div class=&quo

gidaban79's avatar
gidaban79's avatar gidaban797yrs agoVue
0
1
Demers94's avatar

Displaying Paginator links in Javascript

I'm making an AJAX call to my back-end to retrieve some resources. I want the results to be paginated because there are too many. Is there a way to send the Pagination's HTML to the front-end via AJAX, so that I can display the page selection menu in my template? Here's the code I'm using to retrieve the results : $applications = Application::paginate(); return [

Demers94's avatar
Demers94's avatar hdsavani7yrs agoVue
2
1
Last reply by hdsavani 7yrs ago
saidbakr's avatar

How to translate No query results for model message

When a model id is not found, I got custom 404 error with message says "No query results for model [App\ModelName]" I need to translate this message. I searched in resources/lang/en to find any file that may contain this message, but I could not find any one. It is just four files there, auth.php, pagination.php, passwords.php and validation.php.

saidbakr's avatar
saidbakr's avatar tykus8yrs agoLaravel
13
1
Last reply by tykus 8yrs ago
charlieBrown's avatar

How to translate instances of Carbon?

I would like to translate the default display from $model->created_at to Portuguese. Is that possible? In my config/app.php I have: 'locale' => 'pt', In my pt lang folder I have these three files: auth.php pagination.php passwords.php validation.php Where do I place the translation to Carbon instances?

charlieBrown's avatar
charlieBrown's avatar Cronix8yrs agoLaravel
2
1
Last reply by Cronix 8yrs ago
afujita's avatar

How to retrieve a value from the previous record

Hi. I trying to build a dynamic event timetable, using laravel 4.2 and CRUD. The table has basically | id | start_time | duration | end_time | performer | |----|------------|----------|----------|-----------| | 1 | 9:00 | +15 minutes | 9:15 | Performer A | After some research, I found a way to retrieve the id, which is commonly used in paginations, I think. Here i

afujita's avatar
afujita's avatar afujita9yrs agoEloquent
10
1
Last reply by afujita 9yrs 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.