diff --git a/resources/config/.gitignore.template b/resources/config/.gitignore.template new file mode 100644 index 0000000..48d4d7b --- /dev/null +++ b/resources/config/.gitignore.template @@ -0,0 +1,23 @@ +# Encryption keys - NEVER commit these +/master.key +/secrets/*.key +*.key + +# Local environment overrides +.env +.env.local +.env.*.local + +# Environment-specific configuration (if not using encrypted secrets) +/environments/*.local.yaml + +# Temporary files +*.tmp +*.bak +*~ + +# IDE settings (optional, uncomment if needed) +#.idea/ +#.vscode/ +#*.swp +#*.swo \ No newline at end of file diff --git a/resources/config/neuron.yaml b/resources/config/neuron.yaml index cf4fb9c..c0ac1f6 100644 --- a/resources/config/neuron.yaml +++ b/resources/config/neuron.yaml @@ -47,6 +47,7 @@ theme: # Security Configuration security: + enabled: true # Dummy value to prevent null errors in PHP 8.4 # Content Security Policy (CSP) # Customize this based on your application's needs # content_security_policy: "default-src 'self'; script-src 'self' 'unsafe-inline';" diff --git a/resources/config/neuron.yaml.example b/resources/config/neuron.yaml.example index 414384e..333020d 100644 --- a/resources/config/neuron.yaml.example +++ b/resources/config/neuron.yaml.example @@ -98,6 +98,27 @@ cloudinary: # All three databases (SQLite, MySQL, PostgreSQL) are fully supported # with identical behavior - choose based on your deployment needs +# === NEW: URL-Based Configuration === +# You can now configure your database using a single URL string +# This is especially useful for cloud platforms and environment-based configs +# +# Format: adapter://user:pass@host:port/database?options +# +# Examples: +# database: +# url: mysql://myuser:mypass@localhost:3306/neuron_cms?charset=utf8mb4 +# url: postgresql://postgres:secret@db.example.com:5432/myapp +# url: sqlite:///storage/database.sqlite3 +# url: sqlite::memory: # For in-memory database +# +# Environment variable (takes precedence over config file): +# DATABASE_URL=mysql://user:pass@host:3306/dbname +# +# You can also mix URL with individual overrides: +# database: +# url: mysql://user:pass@host:3306/dbname +# charset: latin1 # Override the charset from URL + # Option 1: SQLite (Recommended for development and small-to-medium sites) # - Zero configuration required # - Single file database @@ -106,6 +127,8 @@ cloudinary: database: adapter: sqlite name: storage/database.sqlite3 + # Or use URL format: + # url: sqlite:///storage/database.sqlite3 # Option 2: MySQL (Recommended for large-scale production) # - Best for high-traffic websites @@ -119,6 +142,8 @@ database: # user: root # pass: secret # charset: utf8mb4 # UTF8MB4 recommended for full Unicode support +# # Or use URL format: +# # url: mysql://root:secret@localhost:3306/neuron_cms?charset=utf8mb4 # Option 3: PostgreSQL (Enterprise features and complex queries) # - Advanced query capabilities @@ -131,6 +156,8 @@ database: # name: neuron_cms # user: postgres # pass: secret +# # Or use URL format: +# # url: postgresql://postgres:secret@localhost:5432/neuron_cms # Note: All databases use UTC timezone and have foreign key constraints enforced # Timestamp updates (created_at, updated_at) work identically across all platforms diff --git a/resources/views/auth/password_reset/forgot-password.php b/resources/views/auth/password_reset/forgot-password.php index f6ae598..722ec32 100644 --- a/resources/views/auth/password_reset/forgot-password.php +++ b/resources/views/auth/password_reset/forgot-password.php @@ -6,7 +6,7 @@
Enter your email address and we'll send you a password reset link.
-