Call to a member function getAttributeValue() on null
public function getRouteKeyName(){ return 'slug';}
Property type not supported in Livewire for property: [{"current_page":1,"data":[{"id":1,"name":"Alf.....
<?phpnamespace App\Livewire;use App\Models\Product;use Livewire\Component;use Livewire\WithPagination;class ProductList extends Component{ use WithPagination; public $products; public function mount() { $this->products = Product::paginate(5); } public function render() { return view('livewire.product-list'); }}
<div> @foreach ($products as $product) <div> {{ $product->name }} </div> @endforeach {{ $products->links() }}</div>