Completed
Branch master (a6481d)
by Fèvre
02:09
created

Account::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
namespace Xetaravel\Models;
3
4
class Account extends Model
5
{
6
    /**
7
     * The attributes that are mass assignable.
8
     *
9
     * @var array
10
     */
11
    protected $fillable = [
12
        'user_id',
13
        'first_name',
14
        'last_name',
15
        'biography',
16
        'signature',
17
        'facebook',
18
        'twitter'
19
    ];
20
21
    /**
22
     * Get the user that owns the account.
23
     *
24
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
25
     */
26
    public function user()
27
    {
28
        return $this->belongsTo('Xetaravel\Models\User');
29
    }
30
}
31