source:
app/Models/Permission.php
Last change on this file was 0924b6c, checked in by , 4 years ago | |
---|---|
|
|
File size: 251 bytes |
Rev | Line | |
---|---|---|
[0924b6c] | 1 | <?php |
2 | ||
3 | namespace App\Models; | |
4 | ||
5 | use Illuminate\Database\Eloquent\Model; | |
6 | ||
7 | class Permission extends Model | |
8 | { | |
9 | protected $table = "permissions"; | |
10 | ||
11 | public function role() { | |
12 | return $this->belongsToMany(Role::class, "roles_permissions"); | |
13 | } | |
14 | } |
Note:
See TracBrowser
for help on using the repository browser.