artisan-commands
Installation
SKILL.md
Artisan Commands Skill
Goal
Execute Laravel Artisan commands to scaffold code, run migrations, or manage the application state.
Steps
-
Verify Context
- Ensure you are in the root of a Laravel project (look for
artisanfile). - If not found, stop and ask user for correct directory.
- Ensure you are in the root of a Laravel project (look for
-
Construct Command
- Use
php artisan <command> <arguments>. - Examples:
php artisan make:controller UserControllerphp artisan make:model Post -mphp artisan migrate:status
- NEVER run
migrate:freshor destructive commands without explicit user confirmation.
- Use