Cursor AI Rules for Laravel 11+ Structure
Автор: Laravel Daily
Загружено: 2025-04-11
Просмотров: 8179
Описание:
Let's talk about how to make Cursor/Claude generated Laravel code more up-to-date with the latest versions.
---
My Rules from laravel-11.mdc:
Use Laravel 11+ skeleton structure.
**Service Providers**: there are no other service providers except AppServiceProvider. Don't create new service providers unless absolutely necessary. Use Laravel 11+ new features, instead. Or, if you really need to create a new service provider, register it in `bootstrap/providers.php` and not `config/app.php` like it used to be before Laravel 11.
**Event Listeners**: since Laravel 11, Listeners auto-listen for the events if they are type-hinted correctly.
**Console Scheduler**: scheduled commands should be in `routes/console.php` and not `app/Console/Kernel.php` which doesn't exist since Laravel 11.
**Middleware**: should be registered in `bootstrap/app.php` and not `app/Http/Kernel.php` which doesn't exist since Laravel 11.
**Tailwind**: in new Blade pages, use Tailwind and not Bootstrap. Tailwind is already pre-configured since Laravel 11, with Vite.
---
Links mentioned in the video:
Cursor Rules Generator repository: https://github.com/LaravelDaily/Curso...
Cursor Docs - Rules for AI: https://docs.cursor.com/context/rules...
Cursor Directory - Laravel Rules: https://cursor.directory/rules/laravel
Awesome cursor rules repository: https://github.com/PatrickJS/awesome-...
Support the channel by checking out my products:
My Laravel courses: https://laraveldaily.com/courses
Filament examples: https://filamentexamples.com
Livewire Kit Components: https://livewirekit.com
Other places to follow:
My weekly Laravel newsletter: https://us11.campaign-archive.com/hom...
My personal Twitter: / povilaskorop
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: