This repository has been archived on 2021-01-24. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
laravel-elearning/app/User.php
2016-09-01 11:37:49 +02:00

44 lines
789 B
PHP

<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
public function answers()
{
return $this->hasMany(Answer::class);
}
public function testdetails()
{
return $this->hasMany(Testdetail::class);
}
public function company()
{
return $this->belongsTo(Company::class);
}
}