for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace DoeSangue\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use DoeSangue\Models\Campaign;
use DoeSangue\Models\Donor;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'first_name',
'last_name',
'email',
'username',
'phone',
'bio',
'password',
];
* The attributes that should be hidden for arrays.
protected $hidden = [
'remember_token',
'created_at',
'updated_at'
public function campaigns()
return $this->hasMany(Campaign::class);
}
public function donor()
return $this->hasOne(Donor::class);