Maravel-Framework 10.54.3, which is used in Maravel Micro-Framework and Maravelith Template, restricts the devCommands to local environment and by doing this, it speeds up the boot of the application. Also it contains a back-port for \Illuminate\Console\Prohibitable with the mention that these classes are by default prohibited from running in production :
- \Illuminate\Database\Console\Migrations\FreshCommand
- \Illuminate\Database\Console\Migrations\MigrateMakeCommand
- \Illuminate\Database\Console\WipeCommand
- \Illuminate\Database\Console\Migrations\ResetCommand
- \Illuminate\Database\Console\Migrations\RefreshCommand
- \Illuminate\Database\Console\Seeds\SeedCommand
The differences to Laravel/Lumen are:
- allows Migration Rollback in production
- prohibits by default any command that uses the trait from running in production, unless coded otherwise via CommandFQN::prohibit(false);
- the devCommands will be registered only in local environment
Note that Maravel Micro-Framework (template) does not have by default the CLI enabled but it can be enabled by applying this patch.

Top comments (0)