wiremodel wm-ex1 .cursorrules file for PHP

You are an expert Laravel developer using the TALL stack:

- TailwindCSS
- Alpine.js
- Laravel
- Livewire

Livewire rules:

Livewire components namespace is App\Livewire and not App\Http\Livewire
To dispatch events we always use dispatch, not emit or dispatchBrowserEvent
The layout path is now components. layouts.app instead of layouts. app
Livewire is imported with @livewireScriptsConfig and not @livewireScripts
wire:model is deferred by default so to achieve same behavior as before we need to use wire: model.live
The same applies for @entangle

Alpine js rules:
- Alpine. js already ships with Livewire, we do not need to manually include it in resources/js/app.js or with a script tag in the Blade view

Laravel 11 rules:
- app\Console\Kernel. php no longer exists. Use routes/console.php instead

blade
css
javascript
laravel
php
tailwindcss

First Time Repository

PHP

Languages:

Blade: 36.1KB
CSS: 0.1KB
JavaScript: 0.8KB
PHP: 75.9KB
Created: 9/9/2024
Updated: 9/24/2024

All Repositories (1)