You can create REST API following bellow steps
- Clone this repo
https://github.com/samironbarai/laravel-rest-api.git
- Install composer packages
cd laravel-rest-api
$ composer install
- 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
- Migrate and insert records
$ php artisan migrate
$ php artisan tinker
$ factory(App\Customer::class, 100)->create();