https://github.com/devmuhammadzaki/ums-rbac-api
UMS with RBAC (User Management System with Role-Based Access Control) API built with Laravel 10.
https://github.com/devmuhammadzaki/ums-rbac-api
laravel laravel-spatie
Last synced: 3 months ago
JSON representation
UMS with RBAC (User Management System with Role-Based Access Control) API built with Laravel 10.
- Host: GitHub
- URL: https://github.com/devmuhammadzaki/ums-rbac-api
- Owner: devmuhammadzaki
- Created: 2024-11-17T13:35:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-23T17:23:12.000Z (over 1 year ago)
- Last Synced: 2025-07-31T19:20:07.632Z (11 months ago)
- Topics: laravel, laravel-spatie
- Language: PHP
- Homepage:
- Size: 353 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UMS-RBAC-API
UMS with RBAC (User Management System with Role-Based Access Control) API built with Laravel 10.
## Installation
1. Download the code by clicking **Code**, **Download ZIP**. Or if you have Git install in your machine, you can run this in your terminal.
```
git clone https://github.com/devmuhammadzaki/UMS-RBAC-API.git
```
2. Change directory to your local copy of `UMS-RBAC-API` in your terminal. Then install composer dependencies.
```
composer install
```
3. Copy `.env` file from `.env.example`. In NIX machine you can use this command.
```
cp .env.example .env
```
4. Prepare a database. You can use this command.
```
mysql -uroot -e "CREATE DATABASE UMS-RBAC-API_db"
```
If you have password for your database, you need to specify `-p` on the command.
5. Configure your database settings in `.env`
```
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=UMS-RBAC-API_db
DB_USERNAME=root
DB_PASSWORD=
```
6. Migrate database tables and seed them with fake data
```
php artisan migrate
```
7. Generate a key for you application
```
php artisan key:generate
```
8. Run the development server
```
php artisan serve
```
# Routes (Endpoints)
```
php artisan route:list
```

# Tests
```
php artisan test
```
