????
Current Path : /home/thenclexdoctor.com/public_html/app/Models/ |
Current File : /home/thenclexdoctor.com/public_html/app/Models/Group.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Group extends Model { public $timestamps = false; protected $guarded = ['id']; public function groupUsers() { return $this->hasMany('App\Models\GroupUser', 'group_id', 'id'); } public function users() { return $this->hasMany('App\Models\GroupUser', 'id', 'group_id'); } public function groupRegistrationPackage() { return $this->hasOne('App\Models\GroupRegistrationPackage', 'group_id', 'id'); } public function commissions() { return $this->hasMany(UserCommission::class, 'user_group_id', 'id'); } }
Sorry, this page is not available...