Completed
Push — master ( f67f4f...77dcfd )
by Curtis
40s queued 12s
created

Tutorial::permission()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Models\enso\Tutorials;
4
5
use Illuminate\Database\Eloquent\Model;
6
use App\Models\Permissions\Permission;
0 ignored issues
show
Bug introduced by
The type App\Models\Permissions\Permission was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use LaravelEnso\Tables\App\Traits\TableCache;
8
/**
9
 * @property int $id
10
 * @property int $permission_id
11
 * @property string $element
12
 * @property string $title
13
 * @property string $content
14
 * @property boolean $placement
15
 * @property int $order_index
16
 * @property string $created_at
17
 * @property string $updated_at
18
 * @property Permission $permission
19
 */
20
class Tutorial extends Model
21
{
22
    use TableCache;
23
24
    /**
25
     * The table associated with the model.
26
     * 
27
     * @var string
28
     */
29
    protected $table = 'tutorials';
30
31
    /**
32
     * @var array
33
     */
34
35
    protected $fillable = [
36
        'permission_id', 'element', 'title', 'content', 'placement',
37
        'order_index',
38
    ];
39
40
    protected $casts = [
41
        'permission_id' => 'integer', 'placement' => 'integer',
42
    ];
43
44
    public function permission()
45
    {
46
        return $this->belongsTo(Permission::class);
47
    }
48
}
49