ilhanet / erpnet-profiting-milk
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ilhanet/erpnet-profiting-milk
Requires
- php: ^7.1.3
- illuminate/support: >=5
- nwidart/laravel-menus: 0.5.*
This package is not auto-updated.
Last update: 2025-10-19 18:31:13 UTC
README
Install
- Prepare Your Laravel instalation:
Make sure your .env files point to right database connections
- In your terminal run these commands:
composer require ilhanet/erpnet-profiting php artisan erpnet:backpack:install
- 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 */
- Change your
config/auth.phpto useBackpack\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',
// ],
],