Skip to content

Commit 86875f4

Browse files
Merge pull request #110 from CodeWithDennis/laravel-13
Laravel 13
2 parents 460b13b + fccecd2 commit 86875f4

16 files changed

Lines changed: 608 additions & 875 deletions

File tree

.cursor/rules/laravel-boost.mdc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This application is a Laravel application and its main Laravel ecosystems packag
1414

1515
- php - 8.5.2
1616
- filament/filament (FILAMENT) - v5
17-
- laravel/framework (LARAVEL) - v12
17+
- laravel/framework (LARAVEL) - v13
1818
- laravel/prompts (PROMPTS) - v0
1919
- livewire/livewire (LIVEWIRE) - v4
2020
- larastan/larastan (LARASTAN) - v3
@@ -204,16 +204,16 @@ protected function isAccessible(User $user, ?string $path = null): bool
204204

205205
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.
206206

207-
=== laravel/v12 rules ===
207+
=== laravel/v13 rules ===
208208

209-
# Laravel 12
209+
# Laravel 13
210210

211211
- CRITICAL: ALWAYS use `search-docs` tool for version-specific Laravel documentation and updated code examples.
212212
- Since Laravel 11, Laravel has a new streamlined file structure which this project uses.
213213

214-
## Laravel 12 Structure
214+
## Laravel 13 Structure
215215

216-
- In Laravel 12, middleware are no longer registered in `app/Http/Kernel.php`.
216+
- In Laravel 13, middleware are no longer registered in `app/Http/Kernel.php`.
217217
- Middleware are configured declaratively in `bootstrap/app.php` using `Application::configure()->withMiddleware()`.
218218
- `bootstrap/app.php` is the file to register middleware, exceptions, and routing files.
219219
- `bootstrap/providers.php` contains application specific service providers.
@@ -223,7 +223,7 @@ protected function isAccessible(User $user, ?string $path = null): bool
223223
## Database
224224

225225
- When modifying a column, the migration must include all of the attributes that were previously defined on the column. Otherwise, they will be dropped and lost.
226-
- Laravel 12 allows limiting eagerly loaded records natively, without external packages: `$query->latest()->limit(10);`.
226+
- Laravel allows limiting eagerly loaded records natively, without external packages: `$query->latest()->limit(10);`.
227227

228228
### Models
229229

.cursor/skills/pest-testing/SKILL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
---
22
name: pest-testing
3-
description: "Tests applications using the Pest 4 PHP framework. Activates when writing tests, creating unit or feature tests, adding assertions, testing Livewire components, browser testing, debugging test failures, working with datasets or mocking; or when the user mentions test, spec, TDD, expects, assertion, coverage, or needs to verify functionality works."
3+
description: "Use this skill for Pest PHP testing in Laravel projects only. Trigger whenever any test is being written, edited, fixed, or refactored — including fixing tests that broke after a code change, adding assertions, converting PHPUnit to Pest, adding datasets, and TDD workflows. Always activate when the user asks how to write something in Pest, mentions test files or directories (tests/Feature, tests/Unit, tests/Browser), or needs browser testing, smoke testing multiple pages for JS errors, or architecture tests. Covers: it()/expect() syntax, datasets, mocking, browser testing (visit/click/fill), smoke testing, arch(), Livewire component tests, RefreshDatabase, and all Pest 4 features. Do not use for factories, seeders, migrations, controllers, models, or non-test PHP code."
44
license: MIT
55
metadata:
66
author: laravel
77
---
88

99
# Pest Testing 4
1010

11-
## When to Apply
12-
13-
Activate this skill when:
14-
15-
- Creating new tests (unit, feature, or browser)
16-
- Modifying existing tests
17-
- Debugging test failures
18-
- Working with browser testing or smoke testing
19-
- Writing architecture tests or visual regression tests
20-
2111
## Documentation
2212

2313
Use `search-docs` for detailed Pest 4 patterns and documentation.

.cursor/skills/tailwindcss-development/SKILL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
---
22
name: tailwindcss-development
3-
description: "Styles applications using Tailwind CSS v4 utilities. Activates when adding styles, restyling components, working with gradients, spacing, layout, flex, grid, responsive design, dark mode, colors, typography, or borders; or when the user mentions CSS, styling, classes, Tailwind, restyle, hero section, cards, buttons, or any visual/UI changes."
3+
description: "Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex/grid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3/v4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML/CSS component, CSS file audits, build tool configuration, and vanilla CSS."
44
license: MIT
55
metadata:
66
author: laravel
77
---
88

99
# Tailwind CSS Development
1010

11-
## When to Apply
12-
13-
Activate this skill when:
14-
15-
- Adding styles to components or pages
16-
- Working with responsive design
17-
- Implementing dark mode
18-
- Extracting repeated patterns into components
19-
- Debugging spacing or layout issues
20-
2111
## Documentation
2212

2313
Use `search-docs` for detailed Tailwind CSS v4 patterns and documentation.

0 commit comments

Comments
 (0)