ToolScope Notes
Laravel Notes in Simple English — Code Scope
Free Laravel notes for beginners: PHP and Laravel from zero — routing and controllers, Blade templates, models and migrations, forms and validation, a complete Students CRUD project, login with Breeze, deployment, Eloquent relationships and deep queries, Blade components, file uploads, REST APIs with Sanctum tokens, email, queues and jobs, sessions and cookies, custom middleware, testing — and a full blog system project. Real PHP and Laravel code with real output, common mistakes and practice tasks in every lesson. From the Code Scope Laravel series.
Laravel Notes
20 LESSONS · CODE SCOPE SERIES LV.1–LV.20PHP's famous framework, from your first route to a deployed app: routing and controllers, Blade templates, models and migrations, forms and validation, a complete CRUD project, login with Breeze, Eloquent relationships and deep queries, Blade components, file uploads, REST APIs with Sanctum, email, queues, sessions, middleware, testing — and a full blog system as the finale.
PHP + Laravel Kya Hai?
PHP in one honest glimpse, why Laravel is famous, the MVC map every lesson follows — plus setup: Composer, your first project and artisan serve.
Laravel Routing + Controllers
How a request travels: routes/web.php, controller classes, route parameters and named routes — the traffic system of every Laravel app.
Laravel Views + Blade Templates
Pages with brains: echo with {{ }}, @if and @foreach, one master layout with @extends and @yield, and partials with @include.
Laravel Models + Migrations — Database Se Rabta
The database connection: .env settings, a migration as the table's blueprint, php artisan migrate, and the Model that speaks for the table.
Laravel Forms + Validation — User Se Data Lena
Taking data safely: Blade forms with @csrf, $request->validate rules, red @error messages and old() refill — the full request cycle.
Laravel CRUD Project — Students Manager App
The whole toolkit in one app: Route::resource and its 7 routes, create-read-update-delete live, method spoofing and green success messages.
Laravel Authentication — Login System
A lock on the app: Breeze installs ready login and register pages, passwords sleep hashed, and the auth middleware guards every student route.
Laravel Final Project + Deployment — App Ko Live Karna
The series finale of part one: the finished Students app toured once, then the 5 honest steps that take it from localhost to a live server.
Eloquent Relationships — hasMany, belongsTo Aur N+1 Ka Hal
Tables that know each other: hasMany and belongsTo, reading a teacher with his students, eager loading — and the famous N+1 problem, caught and cured.
Eloquent Deep Dive — Data Ko Gehrai Se Nikalna
Asking sharper questions: where, orderBy, first and findOrFail, sums and averages, groupBy, chunk for big tables, and reusable query scopes.
Blade Components Deep — Dobara Istemal Hone Wale Hisse
Build a piece once, use it everywhere: class and anonymous components, props, slots and named slots, $attributes merging and the rule of three.
File Upload — Tasveerein Aur Files Sambhalna
Photos the safe way: the file input and enctype, image validation, random stored names, storage:link, and cleaning up old files on replace and delete.
REST API in Laravel — Dusri Apps Se Guftagu
The backend phones talk to: apiResource and its 5 routes, honest JSON answers, 201 and 422 and 404 status codes, and API Resources that hide secrets.
API Authentication — Sanctum Tokens
A key card for the API: Sanctum tokens born at login, the Bearer header, 401 without versus 200 with, and logging out by deleting tokens.
Email in Laravel — App Se Khat Bhejna
Letters from your app: the Mailable class, Mail::to()->send(), Mailpit the fake inbox for testing, and email views built with Blade.
Queues & Jobs — Background Mein Kaam
Slow work moves backstage: jobs, the queue line and the worker — dispatch now, process in the background, retry what failed, delay what can wait.
Sessions & Cookies Deep — Website Ki Yaadein
How the server remembers you: cookies in the browser, sessions on the server, flash messages that live for one request, and the drivers behind them.
Middleware Deep — Har Darwazay Ka Guard
Guards you build yourself: make:middleware, the handle() checkpoint, aliases in bootstrap/app.php, admin 403s, parameters and terminate().
Testing Ki Bunyad — Neend Sukoon Ki
Code that checks itself: feature tests that visit pages like a user, assertions, factories, actingAs — and RefreshDatabase keeping tests honest.
Laravel Project 2: Blog System — Series Ka Imtihan
The whole series in one build: posts, categories and comments — relations, forms, login and Blade pages working together as one real blog.