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