Configuration

  1. Paths
  2. Namespaces
  3. Scaffold Templates
  4. Model extend class
  5. API routes prefix & version
  6. Options
  7. Prefixes
  8. Add-Ons
  9. Timestamps

You can configure paths, namespaces, options, add_ons from published config file (config\infyom\laravel_generator.php).

Paths

migration - path where migration file should be generated

model - path where the model file should be generated

datatables - path where DataTable files should be generated

repository - path where repository file should be generated

routes - path of routes file where routes should be added

api_routes - path of api_routes.php (this file will contain all API routes)

request - path where request file should be generated

api_request - path where API request file should be generated

controller - path where scaffold controller file should be generated

api_controller - path where API controller file should be generated

test_trait - path where test trait file should be generated

repository_test - path where repository test file should be generated

api_test - path where test files should be generated

api_controller - path where API controller file should be generated

test_trait - path where test trait file should be generated

repository_test - path where repository test file should be generated

api_test - path where test files should be generated

views - path where views file should be generated

schema_files - path where all schema files should be stored

templates_dir - path where all templates should be published

Namespaces

model - Namespace of Model

datatables - Namespace of DataTable files

repository - Namespace of Repository

controller - Namespace of scaffold Controller

api_controller - Namespace of API Controller

request - Namespace of scaffold Request

api_request - Namespace of API Request

Scaffold Templates

templates - Scaffold Templates types (core-templates, adminlte-templates, metronic-templates or flatlab-templates)

Model extend class

model_extend_class - Model Extends Class

API routes prefix & version

api_prefix - API prefix

api_version - API version

Options

softDelete - use soft delete with models

Prefixes

route - route prefix

path - path prefix

view - view prefix

public - public folder prefix

Add-Ons

swagger - generate swagger annotations for APIs

tests - generate test cases for APIs

datatables - generate CRUD index file with datatables

menu - If you are using generator's default layout then make it true to generate sidebar menu for module

Timestamps

enabled - enable timestamps

created_at - Created At timestamp field name

updated_at - Updated At timestamp field name

deleted_at - Deleted At timestamp field name