Skip to content

modulr/api-laravel-v1

Repository files navigation

modulr-api-laravel

Table of Contents

Install

  1. Clone repository
$ git clone https://github.com/modulr/modulr-api-laravel.git
  1. Enter folder
$ cd modulr-api-laravel
  1. Install composer dependencies
~/modulr-api-laravel$ composer install
  1. Generate APP_KEY
~/modulr-api-laravel$ php artisan key:generate
  1. Configure .env file
// Add database params
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
  1. Run migrations
~/modulr-api-laravel$ php artisan migrate
  1. Run seeders * optional *

NOTE: Seeds create 10 users fake with gravatar

~/modulr-api-laravel$ php artisan db:seed

Routes

Authentication

  • POST /auth/login
  • POST /auth/logout
  • POST /auth/register
  • GET /auth/user

Password reset

  • POST /password/create
  • GET /password/find/{token}
  • POST /password/reset

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages