/agak-core

A core package for Aplikasi Gunasama Agensi Kerajaan - AGAK

Primary LanguagePHP

AGAK CORE

A core package for AGAK Platform.

List of features:

API

  1. AgakLogger - log activity for dashboard newsfeed and audit trail
  2. AgakAPI - core function

Middleware

  1. AgakJWT - manage JWT token
  2. AgakSession - manage session
  3. AgakGateKeeper - check user authorized url

Installation

Install this package via composer:

composer require mhafizhasan/agak-core

Install the service provider and register aliases:

// config/app.php
'providers' => [
    ...
    Mhafizhasan\AgakCore\AgakCoreServiceProvider::class,
];

'aliases' => [
    ...
    'AgakLogger' => Mhafizhasan\AgakCore\Facade\AgakLogger::class,
    'AgakAPI' => Mhafizhasan\AgakCore\Facade\AgakAPI::class,
];

Publish the migration:

php artisan vendor:publish --provider="Mhafizhasan\AgakCore\AgakCoreServiceProvider" --tag="migrations"

Run the migration:

php artisan migrate