Passed
Push — master ( 82f4a5...a09b17 )
by Martin
17:51
created

Permission   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A roles() 0 3 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Permission extends Model
8
{
9
    protected $fillable = ['name'];
10
11
    public $timestamps = false;
12
13
    public function roles()
14
    {
15
        return $this->belongsToMany('App\Role');
16
    }
17
}
18