We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 7 | class Donor extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The table associated with the model. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $table = 'donors'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The attributes that are mass assignable. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $filliable = [ |
||
| 22 | 'blood_type_id', |
||
| 23 | 'bio', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The primary key for the model. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $primaryKey = 'user_id'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Indicates if the IDs are auto-incrementing. |
||
| 35 | * |
||
| 36 | * @var bool |
||
| 37 | */ |
||
| 38 | public $incrementing = false; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Related |
||
| 42 | * |
||
| 43 | * @return \Illuminate\Database\Eloquent\Relations\HasOne |
||
| 44 | */ |
||
| 45 | public function user() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Related |
||
| 52 | * |
||
| 53 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 54 | */ |
||
| 55 | public function bloodType() |
||
| 59 | } |
||
| 60 |