ilhanet/erpnet-profiting-calendar

0.0.1 2020-01-23 00:14 UTC

This package is auto-updated.

Last update: 2024-08-28 23:58:20 UTC


README

GitHub 网站地址

Latest Stable Version Total Downloads Latest Unstable Version License

安装

  1. 准备您的 Laravel 安装

确保您的 .env 文件指向正确的数据库连接

  1. 在您的终端运行以下命令
composer require ilhanet/erpnet-profiting
php artisan erpnet:backpack:install
  1. 在您的 User 模型上使用以下特质
<?php namespace App;

use Backpack\CRUD\CrudTrait; // <------------------------------- this one
use Spatie\Permission\Traits\HasRoles;// <---------------------- and this one
use Illuminate\Foundation\Auth\User as Authenticatable; 

class User extends Authenticatable
{
    use CrudTrait; // <----- this
    use HasRoles; // <------ and this

    /**
     * Your User Model content
     */
  1. 将您的 config/auth.php 修改为使用 Backpack\Base\app\Models\BackpackUser::class
    'providers' => [
        'users' => [
            'driver' => 'eloquent',
-            'model' => App\User::class,
+            'model' => Backpack\Base\app\Models\BackpackUser::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],