Laravel Forum Documentation

3.x — API — Introduction

laravel-forum 3.x provides a RESTful API that can be consumed over HTTP or internally. It supports multiple authentication methods and offers endpoints for creating, querying, modifying and deleting categories, threads and posts.

Responses

Much like Laravel itself, responses returned by the API depend on the request context; internal requests can expect untouched collections and models (or an exception thrown in case of failed authorization, failed validation or "not found" responses), while requests over HTTP can expect a JSON-formatted collection, model or error code and message.

Take a look at laravel-forum-frontend to get an idea of how responses can be used internally.