Skip to content
Edwin Wong edited this page Feb 6, 2018 · 2 revisions

Run this artisan command as following

php artisan larasang:make-module \\namespace\\your\\module

Behind the scene, Larasang will help you create

  • controller (app/Http/Controllers/namespace/your/ModuleController.php)
  • model (app/Models/Module.php)
  • migration (database/migrations/xxxx_xx_xx_create_module_table.php)
  • API configuration file (config/larasangapi/module.php)

And API endpoint is READY! Check your route by using

php artisan route:list
Clone this wiki locally