techlify-inc/laravel-user-management

This package is abandoned and no longer maintained. The author suggests using the techlify-inc/laravel-rbac package instead.

A Module with API Services for Laravel User Management

0.4.2 2018-08-22 02:08 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:12:53 UTC


README

A simple package for Laravel that provides user management services

Installation

Install this package with composer using the following command:

composer require techlify-inc/laravel-user-management

Run migrations

$ php artisan migrate

Usage

This package provides the following API services that your frontend can use:

User Management

// Get the set of users
GET api/users

// Get a single user
GET api/users/{id}

// Add a new user
POST api/users

// Update a user record
PATCH api/users/{id}

// Delete a user record
DELETE api/users/{id}

User Password Management

// Change the current user password
POST api/user/current/update-password {current_password, new_password}

User Session Management

// Log out the currently logged in user
POST api/user/logout

// Get the User record of the currently logged in user
GET api/user/current