Backend for Hosting Panel

Installs: 127

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:JavaScript

v1.0.2 2023-08-12 16:31 UTC

README

Installation

You can install the package via composer:

composer require openjournalteam/core

Usage

Run the following to install:

php artisan core:install
php artisan notifications:table

Migrate

  • Set database connection in env file before migrating
php artisan migrate

Edit config/auth.php and change the following lines:

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => App\User::class,
    ],
],

To

'providers' => [
  'users' => [
            'driver' => 'eloquent',
            'model' => OpenJournalTeam\Core\Models\User::class,
        ],
],

Edit AuthServiceProvider.php and add the following lines on the boot method:

    Gate::before(function ($user, $ability) {
            return $user->hasRole(Role::SUPER_ADMIN) ? true : null;
    });

and import the following namespaces:

use Illuminate\Support\Facades\Gate;
use OpenJournalTeam\Core\Models\Role;

Serve Laravel

php artisan serve

Access the admin panel

http://localhost:8000/panel

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email rahmanramsi19@gmail.com instead of using the issue tracker.

Credits