| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
| informatique:php:laravel [18/05/2026 16:32] – [Spatie Laravel CSP] cyrille | informatique:php:laravel [13/11/2026 09:36] (Version actuelle) – [Autres starter-kits] cyrille |
|---|
| |
| ==== Version 2 ==== | ==== Version 2 ==== |
| | |
| | Avec ''https://laravel.build/<project name>'', les options sont dans https://github.com/laravel/sail-server/blob/master/routes/web.php |
| |
| <code> | <code> |
| |
| * [[https://medium.com/@tankpratik125/beyond-breeze-community-laravel-starter-kits-worth-knowing-432998f0fd60|Beyond Breeze: Community Laravel Starter Kits Worth Knowing]] 2026-04 | * [[https://medium.com/@tankpratik125/beyond-breeze-community-laravel-starter-kits-worth-knowing-432998f0fd60|Beyond Breeze: Community Laravel Starter Kits Worth Knowing]] 2026-04 |
| | * TALL Starter — [[https://github.com/mortenebak/tallstarter|mortenebak/tallstarter]] TALL stack: Tailwind, Alpine.js, Livewire, Laravel. |
| | * Blade Starter Kit — [[https://github.com/imacrayon/blade-starter-kit|imacrayon/blade-starter-kit]] opinionated multi-tenant kit that uses Blade, Alpine.js, and Tailwind CSS. It includes advanced features like team invitations, user impersonation, and 2FA powered by Laravel Fortify. |
| | * Unstyled Blade Starter Kit — [[https://github.com/javdome/unstyled-blade-starter-kit|javdome/unstyled-blade-starter-kit]] Auth scaffolding, routing, layouts — all there. CSS opinions — none. |
| | * Tablar Starter Kit — [[https://github.com/takielias/tablar-starter-kit|takielias/tablar-starter-kit]] Tablar is an admin dashboard UI kit. Worth a look if Bootstrap-flavored admin UIs are your thing. |
| | * Bootstrap Starter Kit — [[https://github.com/hostmoz/laravel-bootstrap-starter-kit|hostmoz/laravel-bootstrap-starter-kit]] traditional Bootstrap setup with Laravel. |
| | * Laravel Daily Starter Kit — [[https://github.com/LaravelDaily/starter-kit|laraveldaily/starter-kit]] Laravel 12+ Starter kit with just Blade (no Vue/Livewire/React), plain Blade setup with Tailwind CSS |
| | * ... |
| * [[https://laraveldaily.com/post/how-to-install-laravel-breeze-laravel-12|How to (Still) Use Laravel Breeze in Laravel 12]] | * [[https://laraveldaily.com/post/how-to-install-laravel-breeze-laravel-12|How to (Still) Use Laravel Breeze in Laravel 12]] |
| * [[https://github.com/LaravelDaily/starter-kit|Blade Starter Kit]] | * [[https://github.com/LaravelDaily/starter-kit|Blade Starter Kit]] |
| |
| | ===== Tips & Patterns ===== |
| | |
| | [[https://wendelladriel.com/blog/eloquent-query-classes-pattern|Eloquent Query Classes pattern]] : Un peu comme le pattern Service mais dédié pour encapsuler une requête ORM complexe et utilisée un peu partout. |
| | * duplicate the query and hope the copies stay synchronized -> :-( |
| | * move everything into a ''local scope'' -> Scopes are excellent for small reusable pieces. Query classes are excellent for named database use cases |
| | * add a static method to the model |
| | * create a repository |
| | * create a dedicated query class -> Eloquent Query Classes pattern |
| ===== Packages ===== | ===== Packages ===== |
| |
| * https://github.com/spatie/laravel-csp | * https://github.com/spatie/laravel-csp |
| * https://freek.dev/982-using-content-security-policy-headers-in-a-laravel-app | * https://freek.dev/982-using-content-security-policy-headers-in-a-laravel-app |
| | |
| | Et pour évaluer les réglages voir les [[/glossaire/csp#content_security_policy|outils d'évaluation CSP]]. |
| |