|
2 | 2 | - Use `search-docs` tool, if available, to get version specific documentation. |
3 | 3 |
|
4 | 4 | @if (file_exists(base_path('app/Http/Kernel.php'))) |
5 | | - {{-- Migrated from L10 to L12, but did't migrate to the new L11 Structure --}} |
6 | | - - This project upgraded from Laravel 10 without migrating to the new streamlined Laravel file structure. |
7 | | - - This is **perfectly fine** and recommended by Laravel. Follow the existing structure from Laravel 10. We do not to need migrate to the new Laravel structure unless the user explicitly requests that. |
| 5 | +{{-- Migrated from L10 to L12, but did't migrate to the new L11 Structure --}} |
| 6 | +- This project upgraded from Laravel 10 without migrating to the new streamlined Laravel file structure. |
| 7 | +- This is **perfectly fine** and recommended by Laravel. Follow the existing structure from Laravel 10. We do not to need migrate to the new Laravel structure unless the user explicitly requests that. |
8 | 8 |
|
9 | | - ### Laravel 10 Structure |
10 | | - - Middleware typically lives in `app/Http/Middleware/` and service providers in `app/Providers/`. |
11 | | - - There is no `bootstrap/app.php` application configuration in a Laravel 10 structure: |
12 | | - - Middleware registration happens in `app/Http/Kernel.php` |
13 | | - - Exception handling is in `app/Exceptions/Handler.php` |
14 | | - - Console commands and schedule register in `app/Console/Kernel.php` |
15 | | - - Rate limits likely exist in `RouteServiceProvider` or `app/Http/Kernel.php` |
| 9 | +### Laravel 10 Structure |
| 10 | +- Middleware typically lives in `app/Http/Middleware/` and service providers in `app/Providers/`. |
| 11 | +- There is no `bootstrap/app.php` application configuration in a Laravel 10 structure: |
| 12 | +- Middleware registration happens in `app/Http/Kernel.php` |
| 13 | +- Exception handling is in `app/Exceptions/Handler.php` |
| 14 | +- Console commands and schedule register in `app/Console/Kernel.php` |
| 15 | +- Rate limits likely exist in `RouteServiceProvider` or `app/Http/Kernel.php` |
16 | 16 | @else |
17 | | - {{-- Laravel 12 project anew, or upgraded & migrated structure --}} |
18 | | - - Laravel brought a new streamlined file structure which this project uses. |
| 17 | +{{-- Laravel 12 project anew, or upgraded & migrated structure --}} |
| 18 | +- Laravel brought a new streamlined file structure which this project uses. |
19 | 19 |
|
20 | | - ### Laravel file Structure |
21 | | - - No middleware files in `app/Http/Middleware/`. |
22 | | - - `bootstrap/app.php` is the file to register middleware, exceptions, and routing files. |
23 | | - - `bootstrap/providers.php` for project specific service providers. |
24 | | - - **No app\Console\Kernel.php** - use `bootstrap/app.php` or `routes/console.php` for console configurations. |
25 | | - - **Commands auto-register** - files in `app/Console/Commands/` are automatically available. |
| 20 | +### Laravel file Structure |
| 21 | +- No middleware files in `app/Http/Middleware/`. |
| 22 | +- `bootstrap/app.php` is the file to register middleware, exceptions, and routing files. |
| 23 | +- `bootstrap/providers.php` for project specific service providers. |
| 24 | +- **No app\Console\Kernel.php** - use `bootstrap/app.php` or `routes/console.php` for console configurations. |
| 25 | +- **Commands auto-register** - files in `app/Console/Commands/` are automatically available. |
26 | 26 | @endif |
27 | 27 |
|
28 | 28 |
|
|
0 commit comments