Initial commit: Struktur aplikasi ilycats
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class RolePermission extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'role_id',
|
||||
'module_slug',
|
||||
'can_read',
|
||||
'can_create',
|
||||
'can_update',
|
||||
'can_delete'
|
||||
];
|
||||
|
||||
public function role()
|
||||
{
|
||||
return $this->belongsTo(Role::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user