aku nok ndi : /home/spdtg/www/schoolmis/app/ |
aku nok ndi : /home/spdtg/www/schoolmis/app/Permission.php |
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Permission extends Model { protected $primaryKey = 'idPermission'; protected $table = 'permissions'; protected $fillable = ['name', 'label']; public function roles() { return $this->belongsToMany(Role::class,'permission_role','idPermission', 'idRole'); } }