Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

positonic's avatar

Accessing database data in kiosk settings

I have added a new page under kiosk settings under API keys. On my new panel I have a select box and I need to populate it with values from a database table.

I'm not sure how to best do this. There seems to be this Spark.state object where the user and team values are put, so if I guess this might be a place.

Or else I load it with Ajax???

This is so easy in normal Laravel I just pass the object from the controller to the view and build the box on the blade view.

Am I missing something? How would i best do this?

Thanks

0 likes
0 replies

Please or to participate in this conversation.