Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 539 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 539 Bytes

Laravel REST APi for CRUD operation

You can create REST API following bellow steps

Installation

  1. Clone this repo
https://github.com/samironbarai/laravel-rest-api.git
  1. Install composer packages
cd laravel-rest-api
$ composer install
  1. Create and setup .env file
make a copy of .env.example and rename to .env
$ php artisan key:generate
put database credentials in .env file
  1. Migrate and insert records
$ php artisan migrate
$ php artisan tinker
$ factory(App\Customer::class, 100)->create();