laravel bytes livewire table tutorial - getting an error

hey so ive followed the laravel bytes tutorial:- Reusable, Dynamic Tables with Laravel Livewire.

but im getting a Call to a member function with() on null error. i have no idea what this is refering to as im pretty new to laravel. how do i fix this? im using laravel 11.

can link to project github if needed.

Hi,

Yep, I’d recommend linking to some code. Someone might be able to spot the issue. I couldn’t see a reference to “with” in the tutorial. I’d guess whatever that is being used on is not set and that’s the error … but no idea without looking I’m afraid.

GitHub - Vilkrin/LaraCMS: A CMS Built on the Laravel Framework link to the github repo,

Hi,

Ok, you should see the error either on-screen (assuming running locally), or in fly logs (if output to there). That should tell you the file and probably the line number too. Laravel is generally pretty good at showing where it went wrong. Armed with the line that threw the error you should see the issue.

this is what laravel throws up when i go to the page in question. doesnt explain what or where the issue is :frowning:

Hi,

Ok it is showing the file, line and also the number. I thought it would.

But yes, the problem is that is a bit too low-level (it’s within Illuminate, which is part of Laravel). You would need to look further “up”. Try clicking on some of the panels on the left, starting with the Livewire Drawer Utils one. See what they show, if anything.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.