AI SummaryHeuristic scoring (no AI key configured).
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "fitviet-laravel — Cursor Rules" prompt rules to my project. Repository: https://github.com/hophat/fitviet-laravel Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Cursor Rules for fitviet-laravel
Backend (Laravel)
• Sử dụng Laravel 11+ • Áp dụng mô hình MVC • Controllers chỉ xử lý logic control flow, không chứa business logic • Services chứa business logic • Repositories xử lý truy xuất dữ liệu • Models định nghĩa relationships và scopes • Rules được đặt trong app/Rules • Policies được đặt trong app/Policies • Resource Controllers cho API endpoints
Frontend (Vue 3)
• Sử dụng Composition API và <script setup> • State management với Pinia • Vue Router với routing và middleware • SFC (Single File Components) • Tailwind CSS cho styling • shadcn-vue cho UI components
Quy ước đặt tên
• Controllers: PascalCase, hậu tố Controller (VD: MemberController) • Models: PascalCase, số ít (VD: Member, Trainer) • Vue Components: PascalCase (VD: MemberList, LoginForm) • Methods: camelCase (VD: getUserData()) • Variables: camelCase (VD: userData) • Database tables: snake_case, số nhiều (VD: members, trainers)
Cấu trúc thư mục Vue
• layouts/: Layout chung cho ứng dụng • pages/: Các trang chính • components/: Components tái sử dụng • stores/: Pinia stores • router/: Vue Router • utils/: Utility functions
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts