govard-laravel
Skill4 starsChanged 3 months agoMITView on GitHub
This skill should be used when the user asks to "run migrations", "run artisan commands", "clear Laravel cache", "config:cache", "run queue operations", "schedule:run", "tinker into app", "artisan tinker", "run Laravel Pint", "lint Laravel project", "audit Laravel", "govard audit", "npm dev/prod", "deploy Laravel", or "govard deploy". Provides Laravel-specific Govard shortcuts and commands. DEPENDENT on govard-toolbox for base commands.
- Reads credentials
- Deletes or force-pushes
- Installs packages
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- diagnosing-superpowersSkill
- diagram-studioSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- govard-magentoSkill
- govard-symfonySkill
- govard-toolboxSkill
- govard-wordpressSkill
- maestro-designSkill
- magento2-backend-devSkill
- magento2-code-reviewSkill
- magento2-dev-coreSkill
- magento2-frontend-devSkill
- magento2-hyva-devSkill
- magento2-linterSkill
- magento2-performance-auditSkill
- magento2-security-scanSkill
- php-dev-coreSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- review-in-worktreeSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 214
In artifact mode: no Laravel step stays on the target — nothing is marked *needs the application* — so the artifact must carry vendor/ and …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Govard Laravel Commands
Laravel-specific shortcuts for Govard environments.
Related Skills
REQUIRED BACKGROUND: Load govard-toolbox first — this skill only covers Laravel-specific shortcuts layered on top of Govard's base commands (govard up, govard sh, govard db).
Docker requirement: stack commands here (govard up/down/sh, govard db,
govard tool ...) need Docker. On a host without it they exit 3 with
CAPABILITY_MISSING; govard audit run --checks integrity still works and
covers manifest/lock and Magento module/DI checks without a container.
For generic PHP (strict_types/PSR-12/PHPStan/Security) see php-dev-core.
Artisan Commands
Laravel's artisan CLI runs inside the PHP container via govard tool artisan. Govard exposes every artisan command without entering the container shell:
# Cache management
govard tool artisan config:cache
govard tool artisan config:clear
govard tool artisan cache:clear
# Route cache
govard tool artisan route:cache
govard tool artisan route:clear
# View cache
govard tool artisan view:cache
govard tool artisan view:clearAudit
For generic PHP (strict_types/PSR-12/PHPStan/Security) see php-dev-core. For 4-framework matrix and govard audit run --checks lint --lint-provider govard --mode project --format json see govard-toolbox ## Audit.
Laravel lint excludes (since v1.68.0): bootstrap/cache/* and storage/* (storage/framework/cache|sessions|views, storage/logs) are always ignored — both phpcs --ignore=*/bootstrap/cache/*,*/storage/* and phpstan excludePaths in docker/audit/bin/glint and Go-side filterGeneratedFindings in internal/audit/lint_govard.go. Fresh laravel 11 audit no longer fails on bootstrap/cache/packages.php/services.php or storage/framework/views/*.php; remaining findings are real project files (config/, app/, tests/).
Database
# Migrations
govard tool artisan migrate
govard tool artisan migrate:fresh
govard tool artisan migrate:refresh
govard tool artisan migrate:rollback
govard tool artisan migrate:status
# Seeders
govard tool artisan db:seed
govard tool artisan db:seed --class=UserSeeder
# Factory
govard tool artisan make:factory PostFactory
govard tool artisan tinker
# Direct SQL
govard db connectGovard stack.php_version defaults to 8.4 for Laravel 11; verify with govard config get stack.php_version before running fresh migrations.
Queue Operations
# Start queue worker
govard tool artisan queue:work
# Queue withSupervisor
govard svc up
# Retry failed jobs
govard tool artisan queue:retry all
govard tool artisan queue:failed
# Clear queue
govard tool artisan queue:flushScheduler
# Run scheduler (keep in cron)
govard tool artisan schedule:run
# List scheduled
govard tool artisan schedule:listDevelopment
# Create commands
govard tool artisan make:command MyCommand
govard tool artisan make:controller MyController
govard tool artisan make:model Post
govard tool artisan make:migration create_posts_table
# Tinker (interactive REPL)
govard tool artisan tinker
# Show routes
govard tool artisan route:list
govard tool artisan route:list --path=apiTesting
# Run tests
govard tool artisan test
# With PHPUnit
govard tool php artisan test
govard tool php vendor/bin/phpunit
# Specific test
govard tool php vendor/bin/phpunit --filter=UserTestFrontend Assets
# Node modules
govard tool npm install
govard tool npm run dev
govard tool npm run prod
govard tool npm run watch
# Laravel Mix (if using)
govard tool npm run dev
govard tool npm run production
# Clear Vite cache
# node_modules is bind-mounted into the container; clearing from the host is safe
rm -rf node_modules/.viteLaravel has no Govard frontend_sync watcher (unlike Hyvä/Luma). Use govard tool npm run watch for live builds.
Environment (.env)
Govard injects APP_KEY, DB_CONNECTION, DB_HOST, and APP_ENV via .env. Check values:
govard config get stack.php_version
cat .env | grep -E 'APP_ENV|DB_'
govard tool artisan envAPP_ENVdefaults tolocal; Govard does not overwrite a committed.env.DB_CONNECTIONis auto-wired to Govard MariaDB (mariadb 11.4default).APP_KEYis generated ongovard env upif missing.
Logging
# View logs
tail -f storage/logs/laravel.log
# Clear logs
govard tool artisan log:clear
# Laravel Debugbar (if installed)
curl -s https://local.test/_debugbar/openDeployment
Laravel ships a deploy recipe, so govard deploy runs Laravel's own commands instead of the engine's neutral defaults. Watch before you run:
govard deploy plan production # the resolved pipeline — no connection, no Docker
govard deploy check production # preflight over ssh
govard deploy production --yes| Step | Command on the target |
build:vendors | composer install --no-dev --optimize-autoloader --no-interaction --prefer-dist |
build:frontend | frontend_command inside each frontend_dir; an empty frontend_dir skips it |
app:configure | artisan storage:link |
db:migrate | artisan migrate --force --no-interaction |
maintenance:enable / disable | artisan down / artisan up, run in the served release |
app:workers:pause | with worker_control: true: artisan queue:restart, plus horizon:terminate if Horizon is installed |
app:cache:flush | artisan optimize:clear then artisan optimize |
deploy:verify (app) | artisan db:show; migrate:status on Laravel 10 and older |
db:backup | none — --db-backup fails naming the reason instead of producing no dump |
.env is a shared file and storage a shared directory (the maintenance flag lives at storage/framework/down); sync_paths is vendor and public/build for an in-place docroot. Settings: frontend_dir, frontend_command, worker_control, runtime_reload_command.
- The caches are built on the target:
artisan optimizewritesbootstrap/cache/config.php, and once that file exists the process environment no longer overrides.env. - Maintenance is guarded on
artisanandvendor/autoload.phpin the served path: on a first in-place deploy onto a fresh docroot both are absent, both steps exit 0, and no window opens — silently. queue:restartexits 0 whatever the cache store is, soworker_control: trueonly means something with a persistent store (Redis).- First deploy: seed the target's
.envfirst, or the release keeps the repository's copy, which names the local database. - In artifact mode no Laravel step stays on the target — nothing is marked needs the application — so the artifact must carry
vendor/andpublic/build;app:cache:flushstill runs on the target. - Sandbox:
default-mysql-client, extensionsbcmath curl gd intl mbstring mysql sqlite3 xml zip, servicesmariadb+redis-server.
Deploy preflight where provided: a native deploy-plan tool prints this pipeline without connecting; a native deploy-check runs the preflight. Running it stays in the terminal. Otherwise:
govard deploy plan/govard deploy check.
Reference: https://govard.ddtcorex.com/workflows/deployment#laravel-symfony-and-wordpress · worked config: https://govard.ddtcorex.com/workflows/deploy-case-studies#case-9-laravel.
Common Workflows
After Pulling Code
govard tool composer install
govard tool artisan migrate
govard tool artisan cache:clear
govard tool npm install && govard tool npm run devCreating Features
govard tool artisan make:model Post -mcr # Model + Migration + Controller
govard tool artisan migrate
govard tool artisan route:listDeployment Prep
govard tool artisan config:cache
govard tool artisan route:cache
govard tool artisan view:cache
govard tool npm run prodDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

