Complete REST API with Laravel 8.x and Frontend integration Mini Project. The latest version of one of the most popular PHP frameworks - to create a REST API CRUD web application with a MySQL database and Front end styles from scratch and step by step starting with the installation of Composer (PHP package manager) to implementing and serving your application.
- Clone the repository with following path
C:\xampp\htdocs
- git clone
git clone https://github.com/hasmukh-dharajiya/laravel-rest-api-with-front-end.git
- Open
backend-Laravel-API
andCopy .env.example file to .env
- Edit database credentials in .env file
DB_DATABASE=backendapi
- Run
composer install
- Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan ser
- Open xampp and Start Apache Server
- Run Index.php in FrontEnd-Integration Folder
http://localhost/FrontEnd-Integration/
You should see the list of Data, something like this:
Key Feature of Project.
User
- POST Employee All
http://localhost:8000/api/get/employee
- POST Employee Single
http://localhost:8000/api/get/single/employee
- POST Employee Add
http://localhost:8000/api/add/employee
- POST Employee Update
http://localhost:8000/api/update/employee
- POST Employee Delete
http://localhost:8000/api/delete/employee