Base MVC

Base MVC

Base MVC

Verified against dev-next. Base MVC is the shared admin CRUD framework layered on Laravel.

Core building blocks

Component

Location

Role

Component

Location

Role

BaseModel

app/BaseModel.php

Eloquent behavior, soft deletes, view/index helpers, model registry

BaseController

app/Http/Controllers/BaseController.php

Generic CRUD and API helpers

BaseViewController

app/Http/Controllers/BaseViewController.php

Form/view preparation and translations

BaseRoute

app/extensions/core/BaseRoute.php

Authorized CRUD and API route generation

Generic views

resources/views/Generic

Shared index/edit/create templates

Use Base MVC for

  • Standard admin CRUD resources

  • Index tables, edit forms, relation panels, and DataTables listings

  • Resources using the common web/API surface

Use Livewire for

New interactive workflows, wizards, and reactive relation editors that do not fit generic CRUD.

Contributor expectations

  • Extend BaseController/BaseModel for standard resources

  • Use html_list() for relation options

  • Validate and authorize server-side

  • Keep UI strings translated

  • Add feature or lifecycle tests

Related pages