Getting error on custom list view..$resource must not be accessed before initialization
I am getting this on a custom list page nothing on it yet just the table.
this is my StatusResource.php
https://gist.github.com/craigvc/f4f03a8287e587e45e634b288f5ba7e3
and this is my view file
https://gist.github.com/craigvc/d6b52f6a58df776b0449c869260a1807
and the liststatuses file
https://gist.github.com/craigvc/ba9a96c2de1e2fbe24ebc044b20326a5
Does any one have any ideas where i am going wrong? (I wanted to add some text above the table so i then switched to custom page view and this error started?
1 Reply
and it was because i was dumb!!
forgot protected static string $resource = StatusResource::class;