All custom and built-in Artisan commands for iLeben: Salesforce sync, payments, contacts, testing, and destructive database operations with safety notes.
Use this file to discover all available pages before exploring further.
iLeben ships with a set of custom Artisan commands alongside the standard Laravel toolkit. The sections below group every command by its operational area, explain what each one does, and call out the ones that can cause irreversible data loss.
# Display the current application state, environment, and loaded packagesphp artisan about# Flush all application caches (config, routes, views, events)php artisan optimize:clear# Cache config, routes, and views for production performancephp artisan optimize
Use optimize:clear whenever you change .env values, update routes, or modify config files. Always follow it with optimize before returning the site to normal traffic.
# Apply pending migrationsphp artisan migrate# Display the status of every migration (applied / pending)php artisan migrate:status# Seed the database with initial or test dataphp artisan db:seed
The commands below are destructive. They permanently modify or erase database content and cannot be undone without a backup. Always confirm APP_ENV and DB_CONNECTION before running them. Never run these against a production database without a full backup.
# Drop every table, view, and type in the current databasephp artisan db:wipe# Drop all tables then re-run every migration from scratchphp artisan migrate:fresh# Drop all tables, re-run migrations, then seed the databasephp artisan migrate:fresh --seed# Revert the most recent batch of migrationsphp artisan migrate:rollback# Revert every migration (empties the schema)php artisan migrate:reset
# Sync projects from Salesforce into the local databasephp artisan test:sync-projects# Sync the plant catalogue from Salesforcephp artisan sync:plants# Test the current Salesforce OAuth authenticationphp artisan salesforce:test-auth# Refresh the OAuth token and sync the backup stored in SiteSettingsphp artisan salesforce:refresh-token
salesforce:refresh-token is also scheduled to run every 20 hours automatically. Run it manually after reconnecting OAuth to confirm the backup is current.For OAuth reconnection after an invalid_grant error, see the OAuth reconnection procedure in the README and run salesforce:test-auth to confirm authentication is healthy.
# Preview which contact records would be normalised (no changes written)php artisan contact:normalize-rango-renta-key --dry-run# Normalise rango_renta keys across historical contact submissionsphp artisan contact:normalize-rango-renta-key
Always run with --dry-run first to review the scope of changes before committing them.
# Install the FinMail plugin tables and configurationphp artisan fin-mail:install# Apply FinMail schema or data upgrades after package updatesphp artisan fin-mail:upgrade# Remove old sent-mail history recordsphp artisan fin-mail:cleanup
Run fin-mail:install once on first deploy. Run fin-mail:upgrade after updating the finity-labs/fin-mail package.
# Prune old activity log records (default retention per package config)php artisan activitylog:clean# Purge command runner history (default 30-day retention)php artisan command-runner:purge-history# Capture the exit code for a tracked command runner process (internal use)php artisan command-runner:capture-status <id> <code>
command-runner:capture-status is called internally by the Filament Command Runner plugin. Do not call it manually unless instructed by support.
# Run the full test suite in compact output modephp artisan test --compact# Run a single test filephp artisan test --compact tests/Feature/SomeTest.php# Run tests matching a specific namephp artisan test --compact --filter=testName
Tests use a dedicated sqlite_testing connection backed by database/testing.sqlite. This file must exist before running tests for the first time. See Monitoring & Testing for setup details.
# Start the Vite dev server with hot-reload (development only)cd frontend && npm run dev# Produce a production build in frontend/dist/cd frontend && npm run build
After running npm run build, the compiled assets in frontend/dist/ are served by the React frontend. You do not need to restart the Laravel server.