Level 18
While I'm not familar with ag-grid you would have to use your Laravel API endpoint to return the structure and format that AG-grid expects. In this case it's JSON with a structure that looks like this but would depend on your table heading names.
See this example from the AG-Grid docs. Sometimes the docs have all you need 😉