Skip to content

1. Introduction and Installation

kurosawa93 edited this page Dec 21, 2018 · 4 revisions

Introduction

Ramenauth is a custom library which is created by Ordent. It features many function covering basic needs for authentication, like registering new user, login, user validation, token generation, etc. It also has features like custom rules regarding user, email and phone verification.

Install via Composer

composer require ordent/ramenrest

right now you need to add "minimum-stability" : "dev" in your composer.json

After successfull installation, a configuration file for ramenauth will be generated. it is located at config/ramenauth.php.

Update Project Configuration

Wire your current project to the newly added ramenauth using RamenAuthProvider. Add Ordent\RamenAuth\Providers\RamenAuthProvider::class to config/app.php. run php artisan config:cache to refresh our cache and rebuild the cache with your newly added ramenauth.

Migration

After updating your project configuration, and making sure your cache is refreshed, migration is ready to run. run php artisan migrate if your database configuration is in .env, or php artisan migrate --env=example if your database configuration is in .env.example. This command will run any current pending migration, and also migration files for ramenauth. Check your database if the process is finished, there should be tables like this:

- permissions
  
- roles
  
- model_has_permissions
  
- model_has_roles
  
- role_has_permissions
  
- ramen_verifications
  
- ramen_forgottens

Those are the tables that will be utilized by ramenauth.

Clone this wiki locally