Intro
This module related to companies and users, Pivot table to each users have many companies.
Impersonate to other company.
Requirements
This module required some other packages :
- "yajra/laravel-datatables-oracle"
How to use
Before you run users seed, please run this module seed to seeding permissions to access this module.
$ php artisan module:seed Master
Append this to user model. And then you can use like this $user->companies
use Modules\ClientGroup\Entities\Company;
public function companies()
{
return $this->belongsToMany(Company::class, 'user_companies');
}
Append menu
@can('view master')
<li class="nav-sub-item">
<a href="{{ url('/master') }}" class="nav-sub-link">
<i data-feather="file"></i> Master
</a>
</li>
@endcan
master menu
- Employee Type,
- Working Shift,
- Working Location,
- Job Division,
- Job Deparment,
- Job Level,
- Job Position,
- Golongan,
- Leave Type,
- Religion
Author