/laravel-crud-with-restful-api

Laravel 6 CRUD example with RESTful api

Primary LanguagePHP

Laravel 6.0 CRUD

Installation

  1. Clone repository
$ git clone https://github.com/risingworld777/laravel-crud-with-restful-api.git
  1. Enter folder
$ cd laravel-crud-with-restful-api
  1. Install composer dependencies
composer install
  1. Generate APP_KEY
php artisan key:generate
  1. Configure .env file, edit file with next command $ nano .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=***
DB_PASSWORD=***
  1. Run migrations
php artisan migrate
  1. Create Server
php artisan serve
  1. Access project
http://127.0.0.1:8000/products

RESTful api

Checkout rest_api branch.