Actions (Laravel Forum 6.x)


Laravel Forum 5 uses single-action classes to carry out the specific actions associated with requests, such as creating a thread or deleting a post. When an action is executed, its database queries are wrapped in a transaction for easy rollback in case of a failure.

For a full list of actions, see their definitions in src/Actions.

If you wish to use server-side forum features programmatically, using actions is a good option - just keep in mind that they do not dispatch events because that responsibility is taken care of by the form requests and controllers instead.