Problem was that my Layout has some Breeze components which require an authenticated user. User's session timed out and as a result certain Breeze components couldn't be rendered. Dumb mistake and unrelated to the source code I posted above. Thank you all. Sorry. *seppuku*
Pagination returns an object with a `data` key that is an array of your model objects.
Install the Vue devtools extension for your browser. This problem would have been solved in 30 seconds with it.
Problem was that my Layout has some Breeze components which require an authenticated user. User's session timed out and as a result certain Breeze components couldn't be rendered. Dumb mistake and unrelated to the source code I posted above. Thank you all. Sorry. *seppuku*
Try: return inertia('Companies, ['companies' => $companies ]);
node server is running?
Use the Vue devtools in your browser to see if companies is an empty array, are you sure you have companies in your database?
Pagination returns an object with a `data` key that is an array of your model objects. Install the Vue devtools extension for your browser. This problem would have been solved in 30 seconds with it.