AJAX
config/ajax.php
The ajax configuration file contains all actions you want to register
For a more detailed guide, please refer to the AJAX section in the advanced guide.
enabled
Section titled “enabled”If you want to enable your ajax routes, set this to true
<?php
return [ 'enabled' => true,];actions
Section titled “actions”To register an action, you need to add a new entry to the actions array.
The key is the name of the action, the available options can be found below.
use App\AJAX\Actions\Example;
return [ 'actions' => [ 'my_action' => [ 'class' => new Example, ], ],];Options
Section titled “Options”| Key | Description |
|---|---|
class | The class that contains the action |

