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

Activation::user()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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