rtmatt/rtclientmanager

There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2016-10-07 22:31 UTC

README

##Prerequisites:

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

##Installation

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

\RTMatt\MonthlyService\Providers\MonthlyServiceServiceProvider::class,
'Barryvdh\Cors\ServiceProvider',

###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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.min.js"></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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

And add this before the closing body tag

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

Configuration

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_NAME=PA From email name
RTDB_ORIGIN_EMAIL=PA From email email address