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.
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.
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.
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.