This How to describes how to implement AJAX into Laravel on the example of datatables
...
First create a Route in Routes or BaseRoute
This is the generic Route for the Datatables plugin,to generate a route for every Index-controller.
We handle all requests in the BaseController and get the data from Model
Info | ||
---|---|---|
| ||
Security: Please take care: if no middleware is specified, this means that there is no security checking. Normally 'auth:view' should be used! |
2. Setup Controller Method
...
Go into Builder Tab and Select your HTTP Request Type, your Route to your controller method and a Content-type Key with Value application/json (your Window should look similar to the picture below)
Info |
---|
This is just a short Description. A real world example will be added |
Related articles
Filter by label (Content by label) | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | ||
---|---|---|
| ||
Related issues |