erjon / cone
Installs: 502
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
README
How to use
- Installation
composer required erjon/cone
- Publish files
php artisan vendor:publish --tag=cone
- Modify config file which is located at
config/cone.php
. Below is a prebuild structure.
<?php
return [
'connection' => env('CONE_DB_CONNECTION', 'mysql'),
'route-after-license' => 'login',
'route-to-logout' => 'logout'
];
- Structure
- The most important one is
connection
. Atconfig/database.php
there are some connections like mysql, pgsql etc. You can create a new one or use those. You need to connect to the Om-link 3.0 Bumblebee database so that the package can work. route-after-license
is the route you wish to get redirected after you provide the correct license keyroute-to-logout
is the name of the logout route you have.
- The most important one is
- Add the
license
middleware to your desired routes. Preferably at the superadmin or admin routes. You need to have an authenticated user so that the middleware can work.