| Total Complexity | 2 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Profile extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The database table used by the model. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $table = 'profiles'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The attributes that are not mass assignable. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $guarded = [ |
||
| 22 | 'id', |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Fillable fields for a Profile. |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | protected $fillable = []; |
||
| 31 | |||
| 32 | protected $casts = [ |
||
| 33 | 'theme_id' => 'integer', |
||
| 34 | ]; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * A profile belongs to a user. |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function user() |
||
| 42 | { |
||
| 43 | return $this->belongsTo('App\Models\User'); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Profile Theme Relationships. |
||
| 48 | * |
||
| 49 | * @var array |
||
| 50 | * |
||
| 51 | * @return \Illuminate\Database\Eloquent\Relations\HasOne |
||
| 52 | */ |
||
| 53 | public function theme() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |