Complete Real world REST API in Laravel 8.x(with Passport) with Back-End And Front-End integration. Building a robust restful API in Laravel using Passport Authentication. Frontend Project using JQuery and Ajax.
- Clone the repository with following path
C:\xampp\htdocs
- git clone
git clone https://github.com/hasmukh-dharajiya/laravel_passport_rest_api_with_front_end.git
- Open
laravel_passport_rest_api_with_front_end/back-end-with-passport-rest-apis
- Copy
.env.example file to .env
- Edit database credentials in .env file
DB_DATABASE=dashboard
- Run
composer install
- Run
php artisan key:generate
- Run
php artisan passport:install
- Run
php artisan migrate
- Run
php artisan ser
- Open xampp and Start Apache Server
- Run login.php in laravel_passport_rest_api_with_front_end/front-end-with-php-ajax-integration Folder
http://localhost/laravel_passport_rest_api_with_front_end/front-end-with-php-ajax-integration/register.php
All Set First Register With Email and Password.
Note
: Make Sure Laravel backend Project Run In Background (Testing: http://127.0.0.1:8000/).
Key Feature of Project.
- Backend API using Laravel with Passport.
- Real World Calling Api with Front End Dashboard
- Custom Authentication System (without jetstream)
- Register,Login And Dashboard Design
- Run Local Environment
- Responsive Template
- Use Real-World Project
- Authorized User Using Passport Token.
- Front End Project Call Laravel passport Api using AJAX.
http://localhost/laravel_passport_rest_api_with_front_end/front-end-with-php-ajax-integration/register.php
http://localhost/laravel_passport_rest_api_with_front_end/front-end-with-php-ajax-integration/user/index.php