2017 © Pedro Peláez
 

library erpnet-backpack

image

ilhanet/erpnet-backpack

  • Thursday, June 21, 2018
  • by lucianobapo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

erpnet-backpack

Site do GitHub, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Install

1) Prepare Your Laravel instalation:, (*3)

Make sure your .env files point to right database connections, (*4)

2) In your terminal run these commands:, (*5)

``` bash composer require ilhanet/erpnet-backpack php artisan erpnet:backpack:install, (*6)


3) Use the following traits on your User model: ```php <?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 */

4) Change your config/auth.php to use Backpack\Base\app\Models\BackpackUser::class:, (*7)

    'providers' => [
        'users' => [
            'driver' => 'eloquent',
-            'model' => App\User::class,
+            'model' => Backpack\Base\app\Models\BackpackUser::class,
        ],

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

The Versions