develop
Last change
on this file since 53d99ce was 53d99ce, checked in by beratkjufliju <kufliju@…>, 3 years ago |
edited permissions
|
-
Property mode
set to
100644
|
File size:
288 bytes
|
Line | |
---|
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 | protected $fillable = ["name"];
|
---|
12 |
|
---|
13 | public function role() {
|
---|
14 | return $this->belongsToMany(Role::class, "roles_permissions");
|
---|
15 | }
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.