ilhanet/erpnet-profiting-milk

0.0.3 2020-02-29 14:39 UTC

This package is not auto-updated.

Last update: 2024-11-03 13:41:04 UTC


README

Site do GitHub

Latest Stable Version Total Downloads Latest Unstable Version License

Install

  1. Prepare Your Laravel instalation:

Make sure your .env files point to right database connections

  1. In your terminal run these commands:
composer require ilhanet/erpnet-profiting
php artisan erpnet:backpack:install
  1. Use the following traits on your User model:
<?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. Change your config/auth.php to use 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',
        // ],
    ],