PHP code example of openjournalteam / core

1. Go to this page and download the library: Download openjournalteam/core library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

openjournalteam / core example snippets


php artisan core:install
php artisan notifications:table

php artisan migrate

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

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

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

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

php artisan serve

http://localhost:8000/panel