Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s
42 lines
1.7 KiB
Markdown
42 lines
1.7 KiB
Markdown
# UPGRADE Guide
|
|
|
|
- [Upgrading To v2.2 From v2.1](#upgrading-to-v22-from-v21)
|
|
|
|
## High Impact Changes
|
|
|
|
- [Laravel 12 Upgrade](#laravel-12-upgrade)
|
|
|
|
## Upgrading To v2.2 From v2.1
|
|
|
|
> [!NOTE]
|
|
> We strive to document every potential breaking change. However, as some of these alterations occur in lesser-known sections of Krayin, only a fraction of them may impact your application.
|
|
|
|
### Updating Dependencies
|
|
|
|
**Impact Probability: High**
|
|
|
|
#### PHP 8.3 Required
|
|
|
|
Krayin CRM v2.2 now requires PHP 8.3 or greater.
|
|
|
|
### Laravel 12 Upgrade
|
|
|
|
**Impact Probability: High**
|
|
|
|
Krayin CRM v2.2 has been upgraded to Laravel 12, which introduces stricter type checking and modernized date/time handling.
|
|
|
|
#### Key Changes
|
|
|
|
- **Bootstrap**: `bootstrap/app.php` now uses the new `Application::configure()` builder pattern. Service providers are listed in `bootstrap/providers.php`.
|
|
|
|
- **Kernels Removed**: `app/Http/Kernel.php` and `app/Console/Kernel.php` are removed. Middleware and scheduling are configured in `bootstrap/app.php` and `routes/console.php` respectively.
|
|
|
|
- **Exception Handler Removed**: `app/Exceptions/Handler.php` is removed. Exception handling is configured in `bootstrap/app.php`.
|
|
|
|
- **Middleware Classes Removed**: Built-in middleware wrappers (EncryptCookies, VerifyCsrfToken, TrimStrings, TrustProxies, etc.) are removed. Customizations are now done via `bootstrap/app.php`.
|
|
|
|
- **Service Providers Simplified**: `AuthServiceProvider`, `EventServiceProvider`, `RouteServiceProvider`, and `BroadcastServiceProvider` are removed. Their logic is handled in `bootstrap/app.php` or `AppServiceProvider`.
|
|
|
|
- **Config**: `config/app.php` no longer contains `providers` or `aliases` arrays.
|
|
|
|
- **doctrine/dbal** dependency has been removed (native column modification in Laravel 12). |