Skip to content

A Complete API CRUD in Laravel and API data fetched in Frontend By AJAX. Created Token for Authorization System,Password Reset System,Verify User Email,Refresh User Token and Set Custom token expiration time.

Notifications You must be signed in to change notification settings

Mohammad-Asif-Web/Laravel-API-CRUD-with-JWT-Authentication

Repository files navigation

Laravel API Integration with JWT Authentication Token Using Jquery

Install laravel

Before creating this project, make sure that your local machine has PHP and Composer installed.

laravel new version 11 is just arrived. So I used here laravel 10. I will create a fresh laravel app.

composer create-project laravel/laravel:^10.0 laravel-api-jwt

Once the project has been created, start Laravel's local development server using Laravel Artisan's serve command:

laravel-api-jwt
 
php artisan serve

Setup Database

By default, your application's .env configuration file specifies that Laravel will be interacting with a MySQL database and will access the database at 127.0.0.1.

DB_DATABASE=laravel-api-jwt

Now you have to create a database by this name laravel-api-jwt into your local machine xampp server. Once you have configured your MySQL database, you may run your application's database migrations, which will create your application's database tables.

php artisan migrate

Then Complete this project Step by Step in the Below:

Project Step by Step

About

A Complete API CRUD in Laravel and API data fetched in Frontend By AJAX. Created Token for Authorization System,Password Reset System,Verify User Email,Refresh User Token and Set Custom token expiration time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published