Laravel Backend Topics for Beginners
1. Routing
- API routing (routes/api.php)
- Route parameters & grouping
2. Controllers
- Creating & using controllers
- Route-controller binding
3. Models & Eloquent ORM
- Defining models
- Basic Eloquent methods (find, create, update, delete)
- Relationships (One-to-Many, Many-to-Many)
4. Migrations
- Creating and modifying tables
- Rolling back and refreshing
5. Form Request Validation
- Creating request classes
- Adding validation rules
6. API Resources
- Creating and using Resource and Collection for clean JSON
7. Authentication (Sanctum)
- Token generation
- Protecting routes with middleware
8. Middleware
- Creating custom middleware
- Applying to routes
9. Database Seeding
- Writing seeders
- Faker usage for dummy data
10. Testing
- Feature testing with php artisan make:test
- Testing routes and JSON responses
11. Tinker & Artisan
- Using php artisan tinker for quick testing
- Common Artisan commands
12. Error Handling & Debugging
- Understanding exceptions
- Logging and .env debug settings
13. API Response Standards
- Consistent success and error responses
14. Environment Configuration
- .env management for API keys, DB, etc.
15. Rate Limiting & Throttle
- Protecting APIs with Laravel throttle