Configuration - mpaleo/scaffolder GitHub Wiki

Global settings

After you published the package files with:

./artisan vendor:publish --provider="Scaffolder\ScaffolderServiceProvider"

Check out the {laravel-root}/scaffolder-config directory. The app.json file contains global settings about scaffolder, also you will get some demo files for models.

Relevant contents app.json:

paths->migrations - Where migrations will be stored paths->models - Where models will be stored paths->repositories - Where repositories will be stored paths->controllers - Where controllers will be stored paths->views - Where views will be stored paths->assets - Where assets will be stored paths->routes - Path to your routes file

namespaces->models - Namespace of models namespaces->repositories - Namespace of repositories namespaces->controllers - Namespace of controllers

inheritance->controller - Controllers base class inheritance->models - Models base class

routing->prefix - Route prefix

Helpers

If you pay attention to the fields paths->x of the app.json file, you will notice the usage of app:some/path. This means that you can use the path helpers from laravel:

app_path() = app base_path() = base config_path() = config database_path() = database public_path() = public storage_path() = storage