Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. class RoleStaff extends Eloquent
  5. {
  6. protected $connection = 'mongodb';
  7. protected $collection = 'roles_staff';
  8. protected $guarded = ['_id'];
  9. public function staff()
  10. {
  11. return $this->belongsToMany('App\Model\Staff', 'akses_staff', 'akses_id', 'staff_id');
  12. }
  13. }