rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.74k stars 329 forks source link

Issu with $model #113

Closed fazriairmas closed 3 years ago

fazriairmas commented 3 years ago

Issu with $model

help me, I'm having a problem with the latest livewire. (Call to undefined method Closure :: isEmpty ())

fazriairmas commented 3 years ago

Error Call to undefined method Closure::isEmpty() (View: ....resources\views\vendor\laravel-livewire-tables\bootstrap-4\table-component.blade.php)

` @if($models->isEmpty())

                @include('laravel-livewire-tables::'.config('laravel-livewire-tables.theme').'.includes.empty')

            @else

                @include('laravel-livewire-tables::'.config('laravel-livewire-tables.theme').'.includes.data')

            @endif`
Geovanek commented 3 years ago

I have the same error. I run again composer update and working.

usernotnull commented 3 years ago

This is a duplicate of the issue I posted and resolved, kindly check https://github.com/rappasoft/laravel-livewire-tables/issues/112

The issue is resolved by livewire which reverted the breaking changes in version 2.3.8

@Geovanek You were lucky :) your update came exactly after the livewire update