generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commands
Azizul Hakim edited this page Jun 12, 2025
·
1 revision
Laravel Setanjo provides several Artisan commands for managing settings.
Clear cached settings for better performance during development.
# Clear global settings cache
php artisan setanjo:clear-cache
# Clear cache for specific tenant
php artisan setanjo:clear-cache --tenant="App\Models\User:1"
# Clear all setanjo cache
php artisan setanjo:clear-cache --all-
--tenant=MODEL:ID- Clear cache for specific tenant -
--all- Clear all setanjo-related cache
# Clear user #1 cache
php artisan setanjo:clear-cache --tenant="App\Models\User:1"
# Clear company #5 cache
php artisan setanjo:clear-cache --tenant="App\Models\Company:5"
# Clear everything
php artisan setanjo:clear-cache --allInstall predefined default settings from configuration.
# Install defaults (skip existing)
php artisan setanjo:install-defaults
# Force overwrite existing settings
php artisan setanjo:install-defaults --force// config/setanjo.php
'defaults' => [
'app_name' => [
'value' => 'My Laravel App',
'description' => 'Application name',
],
'registration_enabled' => [
'value' => true,
'description' => 'Allow user registration',
],
'api_rate_limit' => [
'value' => 1000,
'description' => 'API requests per hour',
],
],Made with ❤️ by @AHS12 • © 2025 • MIT Licensed
- Home - Homepage of the wiki
- Installation Guide - Set up Setanjo in your Laravel project
- Setup & Configuration - Configure tenancy modes and basic options
- Quick Start Examples - Get up and running in minutes
- Tenancy Modes - Understanding strict vs polymorphic modes
- Facade API Reference - Complete method documentation
- HasSettings Trait - Uses of HasSrttings trait
- Commands - Artisan commands for management
- Performance Tips - Optimization best practices