for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
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 = [
'username', 'email', 'password',
];
* The attributes that should be hidden for arrays.
protected $hidden = [
'password', 'remember_token',
public function activation()
return $this->hasOne('App\Models\Activation');
}
public function profile()
return $this->hasOne('App\Models\Profile');
public function quizzes()
return $this->belongsToMany(Quiz::class, 'user_quizzes','user_id', 'quiz_id');