%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind-code/app/Models/ |
Current File : /home/silvzytp/crm-ind-code/app/Models/Role.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Role extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['name','slug','note']; public function users(){ return $this->hasMany(User::class); } public function permissions(){ return $this->belongsToMany(Permission::class); } }