erjon/cone

Installs: 502

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

1.1 2023-09-01 08:48 UTC

This package is auto-updated.

Last update: 2025-04-29 01:27:18 UTC


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'
];

  1. Structure
    • The most important one is connection. At config/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 key
    • route-to-logout is the name of the logout route you have.
  • 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.