Recipe

Laravel controller scaffold

Generate a resource controller, model, migration, and API routes in one pass.

Quick start

meridian scaffold Post --resource --api --model --migration

What you get

  • app/Http/Controllers/PostController.php — index, store, show, update, destroy
  • app/Models/Post.php — Eloquent model with fillable guard
  • database/migrations/*_create_posts_table.php — timestamped migration
  • routes/api.php — Route::apiResource entry appended

Flags

FlagEffect
--resourceFull REST controller
--apiExclude create/edit views
--modelGenerate Eloquent model
--migrationCreate migration file

Next steps

Run php artisan migrate then hit /api/posts. See all recipes for more patterns.

Meridian © 2026 FoogleGiber LLC