Artisan commands are command-line utilities that perform various administrative and operational tasks within the platform.
Overview
Artisan is Laravel's command-line interface. The platform provides a web interface to execute common artisan commands for administration and troubleshooting.
How to Access
- Log in as an administrator
- Navigate to System Tools in the sidebar
- Click on Artisan Commands
- You will see a list of available commands
Prerequisites
- Administrator role required
- Access to the server terminal may be needed for certain commands
Available Commands
Cache Commands
cache:clear- Clear all application cacheconfig:clear- Clear compiled config cacheroute:clear- Clear route cacheview:clear- Clear compiled views
Database Commands
migrate- Run pending database migrationsmigrate:rollback- Rollback last migration batchmigrate:refresh- Reset and re-run all migrationsdb:seed- Seed the database with records
Queue Commands
queue:work- Start processing queue jobsqueue:restart- Restart queue workersqueue:clear- Clear failed jobs
System Commands
storage:link- Create symbolic link for storagepackage:discover- Rebuild package cache
Step-by-Step Guide
Step 1: Select a Command
Browse the list of available commands. Click on a command to select it.
Step 2: Enter Arguments (if required)
Some commands require additional arguments. Enter the required values in the arguments field.
Step 3: Execute the Command
Click the Execute button to run the command. Wait for the execution to complete.
Step 4: View Output
After execution, the command output will be displayed. Check for any errors or success messages.
Important Notes
- Do not execute commands unless you understand their purpose
- Some commands may take time to complete
- Always backup the database before running destructive commands
- If a command fails, check the error message and try to resolve the issue
Troubleshooting
Issue: Command execution fails
Solution: Check the error message. Common causes include missing arguments, permission issues, or server configuration problems.
Issue: Command not found
Solution: The command may not be exposed through the web interface. Use the server terminal for specialized commands.
Quick Reference
| Route | admin.artisan.index |
| Permission | Admin only |
| Category | Getting Started |
