Reference

Artisan commands

Artisan commands

Laravolt v7 ships Artisan commands for installation, user management, permissions, scaffolding, assets, workflow checks, and module generation.

Run php artisan list laravolt in your application to see the exact commands available after installation.

Platform setup

Bash
php artisan laravolt:install

Publishes skeleton files, Laravolt migrations, Laravolt assets, media-library migrations, and installs Pest 4 support. The command currently has no flags.

After it finishes, the installer suggests php artisan migrate:fresh for a new application:

Bash
php artisan migrate:fresh

For existing applications, use normal migration practice instead:

Bash
php artisan migrate

Review generated files and migration impact before using migrate:fresh because it drops existing tables.

Admin user

Bash
php artisan laravolt:admin {name?} {email?} {password?} {--no-verify}

Creates or updates an administrator account and assigns a role with wildcard permission.

Interactive mode:

Bash
php artisan laravolt:admin

Scripted mode:

Bash
php artisan laravolt:admin "Rama" rama@example.com secret --no-verify

The three credentials are positional arguments. Verify the exact behavior of --no-verify with php artisan help laravolt:admin before using it in automated provisioning.

Permissions and roles

Bash
php artisan laravolt:sync-permission {--refresh}
php artisan laravolt:manage-user {user?}
php artisan laravolt:manage-role {role?}

Use laravolt:sync-permission after adding permission definitions. Use the manage commands for operator-driven user and role maintenance.

Bash
php artisan laravolt:extract-assets
php artisan laravolt:link

These are normally called by laravolt:install, but they are useful when rebuilding public assets or repairing symlinks.

Scaffolding

Bash
php artisan make:table {name} {--legacy}
php artisan make:view {name} {--force} {--title=}
php artisan make:chart {name}
php artisan make:statistic {name}
php artisan laravolt:clap {--table=} {--template=} {--force} {--module=} {--use-existing-models}
php artisan laravolt:models {--table=}

Use make:table for Suitable/Livewire table classes and make:view for Blade views. make:chart and make:statistic generate Livewire components for dashboard surfaces.

Use laravolt:models to inspect model candidates in app/Models. Use laravolt:clap to generate schema-driven module scaffolding from a database table. See Thunderclap for the full workflow and review checklist.

Workflow

Bash
php artisan laravolt:workflow:check
php artisan laravolt:workflow:sync-instances

Use these commands to validate workflow integration and synchronize local process instances.

Mailkeeper and media

Bash
php artisan laravolt:send-mail
php artisan media:cleanup-chunks {--hours=24} {--queue}

Use the mail command for queued mailkeeper delivery and the media cleanup command for stale chunked uploads. --queue dispatches cleanup work instead of running it synchronously.

Testing setup

Bash
php artisan laravolt:pest4-install {--force}

This command installs and configures Pest 4. It is called by laravolt:install, but can be re-run with --force when repairing a local test setup.

Previous
llms.txt & Copy Markdown