Build Better Software
Laravel, React, Node.js & more. Curated knowledge, code snippets, commands, error solutions, interview prep, and project portfolio.
Knowledge
15 topics
Snippets
Code examples
Commands
CLI reference
Errors
Solutions
Interview
Q&A prep
Projects
Portfolio
Browse by Category
Laravel Basics
9 topics
Database
12 topics
Authentication
3 topics
Authorization
2 topics
APIs
4 topics
Files & Storage
3 topics
Email & Notifications
3 topics
Queues & Jobs
3 topics
Testing
2 topics
Deployment
3 topics
Caching & Performance
5 topics
Payments
1 topics
JavaScript Fundamentals
4 topics
React & Frontend
6 topics
Node.js & Backend
5 topics
Latest Code Snippets
View all →Route Model Binding with Custom Key
Bind a model to a route using a column other than the primary key, such as a slug or UUID.
Global Query Scope for Active Records
Define a global scope that automatically applies constraints to every query for a model.
Form Request Validation with Custom Rules
Create a dedicated Form Request class with custom validation rules for clean, reusable validation logic.
Sanctum SPA Authentication
Set up Laravel Sanctum for cookie-based SPA authentication with middleware protection.
RESTful API Resource Collection
Use API Resources to transform Eloquent models into JSON responses with proper formatting and metadata.
Middleware Rate Limiting by User or IP
Define custom rate limiters for API endpoints with different windows and limits per user or IP.
Explore More
Architecture patterns, database design, and more.