24
Overview

Integration Modes

Pick the right backend integration strategy for your Laravel project.

Mode A: Facade only

  • define forms in code (Form::define(...))
  • resolve schema and submit in PHP
  • no package HTTP route exposure

Mode B: Built-in HTTP API

  • use package routes under formforge.http.prefix
  • configure auth, guard, middleware, and abilities per endpoint group

Mode C: Built-in HTTP API + scoped routes

  • expose package endpoints under contextual prefixes (users/{user}, teams/{team})
  • resolve owner from route params
  • keep package business logic

Mode D: HTTP API + controller override

  • override selected package controllers only when needed
  • keep method signatures compatible with package controllers
  • still reuse package services

Scaffold override controllers:

Terminal
php artisan formforge:make:http-controller --controller=management --controller=schema