Skip to content

openjournalteam/Core

Repository files navigation

Core System Core System for OpenJournalTeam

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 [email protected] instead of using the issue tracker.

Credits