
Learn the basics of Laravel and build APIs step by step, including unauthenticated endpoints, Sanctum authentication, JWT, and Passport integration. Understand API structure, route, controller, model, migration, and authentication workflows.
Install a Laravel 8 project via composer and verify composer, then configure the .env database settings and run php artisan serve on port 8000 to start locally.
Learn to build your first Laravel app by creating a controller, defining a route, and rendering a Blade view with dynamic data like name and email.
Create and manage database schemas with migrations by generating a migration, defining a students table with name, email, phone, and gender, plus timestamps, then migrate, rollback, and refresh as needed.
Explore how Laravel models interact with database tables using naming conventions, with singular models and plural tables, and customize with protected properties and the make model command.
Explore how to seed dummy data in a Laravel 8 app using factories and seeders, populating the students table with Faker-generated records.
Explain middleware in Laravel 8, its global, group, and route types; show how to create and register middleware in the kernel and apply to routes or groups.
Explore route groups and prefixes in Laravel, organizing admin routes with shared prefixes and middleware, and compare syntax for applying prefixes and middleware to groups.
Set up a Laravel 8 api project, create an employees table with email, gender, and age, and implement create, list, update, and delete APIs in a controller without authentication.
Learn to build a Laravel 8 create API that validates input (name, email, phone, gender, age), enforces unique emails, saves to the employee table, and returns a structured response.
List employees in a Laravel 8 API by returning a structured response with status, message, and data for all employees.
Develop a single data api in Laravel 8 by passing an employee id to fetch specific employee details or return an employee not found message with a 404 status.
Build a Laravel 8 API update endpoint that updates employee data via a put request using body parameters and the find method, and returns employee updated successfully or employee not found.
Set up Laravel 8 API development with Sanctum authentication for a token-based single-page app managing students and projects, including register, login, profile, logout, and create, list, get, delete project routes.
Set up migrations for a Laravel 8 API by creating students and projects tables with id, name, email, password, phone number, student_id, description, duration, and removing timestamps.
INSTALL SANCTUM PACKAGE
-----------------------------
composer require laravel/sanctum
PUBLISH SANCTUM CONFIG
-----------------------------
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
php artisan migrate
UPDATE ROUTE SERVICE PROVIDER FILE
------------------------------------
UNCOMMNET THIS LINE protected $namespace = 'App\\Http\\Controllers';
UPDATE MODEL
------------------
use Laravel\Sanctum\HasApiTokens;
ADD THIS - HasApiTokens
Learn to build a Laravel 8 user register API: validate name, email (unique), password (confirmed), hash the password, store in students table, and return a success response.
Learn how to build a Laravel 8 login API for students using Sanctum tokens. Validate email and password, verify credentials, generate a Sanctum token, and protect routes.
Learn to build a user profile API in Laravel 8 by using Sanctum authenticated requests, passing the authorization header token, and retrieving profile data via Postman.
In Laravel 8 API development, implement a logout API that deletes the current Sanctum token, invalidating access and securely logging out the user from profile data and subsequent requests.
Learn to build a Laravel 8 create project API with Sanctum authentication, validate inputs, save the project with the authenticated student_id, and return json.
Learn to implement a delete project api in Laravel 8 using sanctum authentication, verify ownership by student id, locate the project by id, and delete it with proper responses.
Explore building a Laravel 8 API with jwt-based authentication, including user and courses tables, one-to-many enrollments, and register, login, and logout APIs secured by GwG token in header.
Install and configure a JWT package for a Laravel 8 API project using Composer. Publish the config file, generate the secret key, update providers and aliases, then run migrations.
Learn to set up migrations for users and courses, adding a phone number to users and creating a courses table with title, description, and total videos in Laravel 8 API.
Explore settings of api models in Laravel, defining users and courses models, configuring fillable fields, disabling timestamps, and preparing the user model for JWT authentication.
Create and secure Laravel 8 API routes by wiring user and course controllers, defining register and login endpoints, and grouping authenticated routes with JWT middleware for profile and enrollment.
Create a register API in Laravel 8 by validating name, email, phone number, and password with unique email, hash the password via decrypt helper, save the user, and return success.
Learn to implement a login API in Laravel 8 by validating email and password, verifying users, generating a JWT token, and returning success or invalid credentials responses.
Explore how the profile api, protected by middleware, retrieves the logged-in user data via jwt tokens and how ttl and algorithm settings in jwt config control access.
Implement a logout API in Laravel 8 by deleting the authentication token and returning a logged-out response. It uses the authorization header to invalidate the token.
Build a total courses API with a one-to-many relation in Laravel 8, using hasMany on the user model to fetch and return a user’s enrolled courses.
Learn to build a delete course API in a Laravel 8 app, reading user id from token, validating enrollment via JWT authentication, deleting the course, and returning status messages.
Create api controllers for autos and books in a Laravel 8 project, defining resource methods for login, register, profile, logout, and CRUD operations, with passport middleware protection.
Learn to build a Laravel 8 register API by validating input (name, email, password, phone number), enforcing unique email and password confirmation, then create and save the user.
Learn to build a Laravel 8 login API using an autos table for authentication, configure providers and the auto model, validate input, generate a passport token, and test with Postman.
Develop and secure a profile API in Laravel 8 by retrieving user data via a protected get request, using authorization tokens and middleware to enforce authentication.
Learn to implement a logout API in Laravel 8 using Passport tokens, revoking the token via a post request, and returning a clear JSON success response.
Create book API validates input and saves a book with title, description, and cost under the authenticated user. Define fillable fields and return a success response from the controller.
Learn to build a list books api in Laravel 8, listing all books or those by an auto id using a has many relationship, with token-authenticated endpoints and json responses.
Explore building a single book details API in Laravel 8 API development, using passport authentication to return book data by id when the token has access, with clear responses.
Recap the concepts of creating APIs with the Laravel framework, covering local APIs and authentication types such as JWT and Passport, with resource links for further learning.
We will learn the complete idea to develop a Laravel RESTful APIs Development Using JWT, Passport, Sanctum Authentication. Basic Experience in Laravel programming required like working of MVC. Learn practical skills of APIs Development in Laravel with mysql database driver.
This course is a step by step guide through the Laravel development with MySQL programming language. You will go from a beginner level to creating your own web services.
Basics of laravel.
Concept of Route, Controller, Migration, Seeders, Middlewares, Route Group & Prefix.
Complete concept of authentication types in laravel.
API Development without using authentication.
Laravel Sanctum authentication.
API development guide with live code session with sanctum.
API development plans while creating application structure.
About JWT basics and its structure.
JWT API development tutorials.
API Error handling by using middlewares.
About Response & HTTP Code
Relationship in API development with JWT
Difference between Sanctum, JWT & Passport tokens.
API Development Configurations.
Passport package Installation with Complete detail.
Installation & Configuration of JWT in laravel application.
About Middleware types and their use.
Process of API and their strategy to development.
Inside this whole tutorial you will cover too many things. After completing this whole course you will surely can handle api development in laravel framework. This course and it's video by video plans will help you to build a confidence in yourself to move with api development in php framework.
This course is for every level. For beginners, it will be very perfect to enrol and learn development in very easy steps with detailed concept.
Few things you should keep in mind that is you should have some basics of laravel, mysql database and bit about MVC pattern. Rest all the things you will very clear during each sessions.