Skip to content

🛡️ make:super-admin Command

This command creates or updates a super-admin user with full access to the RawDigs platform, including the Filament admin panel.

🔧 Usage

php artisan make:super-admin

📝 Options

Option Description Default
--email Super-admin email address super@rawdigs.test
--name Super-admin full name Super Admin
--password Password for the account secret
--force Required in production environments (none)
--no-confirm Skip the confirmation prompt (e.g. for CI/CD) false

✅ Examples

Create in Development

php artisan make:super-admin \
  --email=admin@rawdigs.test \
  --name="Jane Admin" \
  --password=changeme123

Safe Production Use

php artisan make:super-admin \
  --force \
  --email=admin@rawdigs.com \
  --name="Jane Admin" \
  --password=strongPassword123

💬 You’ll be asked to confirm the details unless --no-confirm is used.

🔍 Behavior

  • Creates or updates a user
  • Creates the super-admin role if it doesn't exist
  • Assigns all permissions to that role
  • Assigns the role to the user
  • Logs the creation at notice level
  • Requires --force in production
  • Asks for confirmation before execution unless --no-confirm is set