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.

20 lessons — Code Scope series LV.1–LV.20 Read online — free PDF download for every lesson Code you can copy & run

Laravel Notes

20 LESSONS · CODE SCOPE SERIES LV.1–LV.20

PHP'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.

Lesson LV.1

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.

Read the notes Video
Lesson LV.2

Laravel Routing + Controllers

How a request travels: routes/web.php, controller classes, route parameters and named routes — the traffic system of every Laravel app.

Read the notes Video
Lesson LV.3

Laravel Views + Blade Templates

Pages with brains: echo with {{ }}, @if and @foreach, one master layout with @extends and @yield, and partials with @include.

Read the notes Video
Lesson LV.4

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.

Read the notes Video
Lesson LV.5

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.

Read the notes Video
Lesson LV.6

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.

Read the notes Video
Lesson LV.7

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.

Read the notes Video
Lesson LV.8

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.

Read the notes Video
Lesson LV.9

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.

Read the notes Video
Lesson LV.10

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.

Read the notes Video
Lesson LV.11

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.

Read the notes Video
Lesson LV.12

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.

Read the notes Video
Lesson LV.13

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.

Read the notes Video
Lesson LV.14

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.

Read the notes Video
Lesson LV.15

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.

Read the notes Video
Lesson LV.16

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.

Read the notes Video
Lesson LV.17

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.

Read the notes Video
Lesson LV.18

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().

Read the notes Video
Lesson LV.19

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.

Read the notes Video
Lesson LV.20

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.

Read the notes Video