My beloved Laravel cheat sheet
Here is the list of some important daily used artisan commands & usage.
Here is the list of some important daily used artisan commands & usage.
Tense / Structure Active Voice Formula (Subject-First) Passive Voice Formula (Object-First) Simple Present Subject + V1(s/es) Object + am/is/are + V3 Present Continuous Subject + am/is/are + V-ing Object +…
Here is the side-by-side reference table for Modal Passive Formulas to help you.
Translating sentences accurately from Gujarati to English often feels challenging when shifting between who is performing the action and what the action is being performed on. In Gujarati grammar, this…
અંગ્રેજી બોલતી વખતે ગુજરાતીઓથી થતી સામાન્ય ભૂલો અને તેના ગોલ્ડન રૂલ્સ (A Complete Practical Guide)
When building a Laravel application, you often need to control who can perform certain actions. For example, only the author of a blog post should be able to edit or…
When building an API in Laravel, one of the most common ways to authenticate users is by using Laravel Sanctum.
When building APIs, one important question always comes up: “How does the server know who is sending the request?” This is solved using authentication systems. Let’s understand it in a…
The real confusion starts when building a project: When should I create a Trait? When should I use an Interface? Why do Abstract Classes exist? Can’t Inheritance do everything?
Traits are for sharing common behavior across unrelated classes (e.g., User, Product, and Order can all Log), avoiding misuse of inheritance and overcoming PHP’s single-inheritance limitation.
Traits are not a Laravel feature. They are a PHP language feature. A Trait is a way to reuse methods across multiple classes. Think of it as a copy-paste helper…