This document defines the conventions and rules the AI Assistant must follow when assisting with Laravel 6 projects. Laravel 6 is a Long Term Support (LTS) release, so stability, compatibility, and adherence to framework conventions are essential.
Route::get('uri', 'Controller@method')
syntax.::class
based controller routes.Example:
Route::get('/users', 'UserController@index');
Use laravel/ui
for auth scaffolding.
composer require laravel/ui "^1.0"
php artisan ui vue --auth
array_get
, str_slug
, bcrypt
, etc.)Feature
and Unit
.app/
Console/
Exceptions/
Http/
Controllers/
Auth/
Middleware/
Requests/
Models/ <- Use this if you separate models (optional)
Providers/
config/
database/
factories/
migrations/
seeds/
resources/
js/
lang/
sass/
views/
routes/
api.php
console.php
web.php
tests/
Feature/
Unit/
Note: Laravel 6 stores models in
app/
by default. You can create anapp/Models/
folder if preferred.
PascalCase + Controller
→ UserController.php
Singular PascalCase
→ User.php
snake_case + timestamp prefix
→ 2025_07_29_000000_create_users_table.php
snake_case folders and files
→ resources/views/user/profile.blade.php
kebab-case URIs
→ /user-profile
camelCase
→ $userList
, getUserData()
PascalCase + Request
→ StorePostRequest.php
PascalCase + Seeder
→ UsersTableSeeder.php