• Laravel 5.*
  • Auth Routes and Users Set Up
  • Correct Mail set up from the Mail::send facade


Via Composer

composer require rtmatt/rtclientmanager

Add Service Providers

Note: you may need to add this before the route service provider to ensure the proper routes are registered


Register middleware

in app/http/kernel

'rtapi' => \RTMatt\MonthlyService\Middleware\RTAPIMiddleware::class

Publish Migrations

php artisan vendor:publish --provider="RTMatt\MonthlyService\Providers\MonthlyServiceServiceProvider" --tag="migrations" 

Run Migrations

php artisan migrate

Publish public assets

php artisan vendor:publish --provider="RTMatt\MonthlyService\Providers\MonthlyServiceServiceProvider" --tag="public"

Configure CORS

php artisan vendor:publish --provider="Barryvdh\Cors\ServiceProvider"

in config/cors.php

'supportsCredentials' => false,
    'allowedOrigins' => ['*'],
    'allowedHeaders' => ['*'],
    'allowedMethods' => ['POST'],
    'exposedHeaders' => [],
    'maxAge' => 0,
    'hosts' => [],

Admin layout

Make you have the following in your admin layout:

  • Bootstrap CSS (grid)
  • jQuery
 <link rel="stylesheet" href=""/>
     <script src=""></script>
     <link href='{{asset('vendor/rtclientmanager/css/client-manager.css')}}' rel='stylesheet'>

For the Priortity Alert Manager to Work, you Need bootstraps js

<script src="" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

And add this before the closing body tag

<script src="{{asset('/vendor/rtclientmanager/js/client-manager.js')}}"></script>


You can publish configs with the following command

php artisan vendor:publish --provider="RTMatt\MonthlyService\Providers\MonthlyServiceServiceProvider" --tag="config" 

Available .env Configs

RTDB_HOME_EMAIL_NAME=the name for PA email target
RTDB_HOME_EMAIL=the email address target for PA mail
RTDB_HOME_EMAIL_NAME_CC=the name for PA CC email target - null to turn off CC
RTDB_HOME_EMAIL_CC=the email address for PA CC email target - null to turn off CC
RTDB_ORIGIN_EMAIL=PA From email email address