Test Setup Failed
Branch master (730ea3)
by alexfloppy
03:06
created

Activation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 4 1
1
<?php
2
3
namespace App\Models;
4
5
use Eloquent;
6
use Illuminate\Database\Eloquent\Model;
7
8
/**
9
 * Class Activation
10
 * @package App\Models
11
 * @mixin Eloquent
12
 */
13
class Activation extends Model
14
{
15
    const EXPIRE_DAYS = 7;
16
    const ACTIVATION_HASH_LENGTH = 50;
17
18
    public $table = 'user_activation';
19
20
    /**
21
     * The attributes that are mass assignable.
22
     *
23
     * @var array
24
     */
25
    protected $fillable = [
26
        'token', 'expired', 'user_id'
27
    ];
28
29
    public function user()
30
    {
31
        return $this->belongsTo(User::class);
32
    }
33
}
34