We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 11-72 (lines=62) @@ | ||
| 8 | use GiveBlood\Modules\Users\User; |
|
| 9 | use GiveBlood\Traits\UuidTrait; |
|
| 10 | ||
| 11 | class BloodType extends Model |
|
| 12 | { |
|
| 13 | ||
| 14 | use SoftDeletes, UuidTrait; |
|
| 15 | ||
| 16 | /** |
|
| 17 | * The table associated with the model. |
|
| 18 | * |
|
| 19 | * @var string |
|
| 20 | */ |
|
| 21 | protected $table = 'blood_types'; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Indicates if the IDs are auto-incrementing. |
|
| 25 | * |
|
| 26 | * @var bool |
|
| 27 | */ |
|
| 28 | public $incrementing = false; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * The attributes that are mass assignable. |
|
| 32 | * |
|
| 33 | * @var array |
|
| 34 | */ |
|
| 35 | protected $filliable = |
|
| 36 | [ |
|
| 37 | 'description', |
|
| 38 | 'code', |
|
| 39 | ]; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * BloodType Dates. |
|
| 43 | * |
|
| 44 | * @var array |
|
| 45 | */ |
|
| 46 | protected $dates = |
|
| 47 | [ |
|
| 48 | 'created_at', |
|
| 49 | 'updated_at' |
|
| 50 | ]; |
|
| 51 | /** |
|
| 52 | * Hidden fields from json response. |
|
| 53 | * |
|
| 54 | * @return void |
|
| 55 | */ |
|
| 56 | protected $hidden = |
|
| 57 | [ |
|
| 58 | 'bid', |
|
| 59 | 'created_at', |
|
| 60 | 'updated_at' |
|
| 61 | ]; |
|
| 62 | ||
| 63 | /** |
|
| 64 | * Related. |
|
| 65 | * |
|
| 66 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 67 | */ |
|
| 68 | public function user() |
|
| 69 | { |
|
| 70 | return $this->belongsTo(User::class); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||
| @@ 11-27 (lines=17) @@ | ||
| 8 | use GiveBlood\Traits\UuidTrait; |
|
| 9 | use GiveBlood\Modules\Users\User; |
|
| 10 | ||
| 11 | class Invite extends Model |
|
| 12 | { |
|
| 13 | use SoftDeletes, UuidTrait; |
|
| 14 | ||
| 15 | protected $table = 'invites'; |
|
| 16 | ||
| 17 | protected $filliable = [ 'invite_code', 'user_id' ]; |
|
| 18 | ||
| 19 | protected $hidden = [ 'user_id', 'created_at', 'updated_at' ]; |
|
| 20 | ||
| 21 | protected $dates = [ 'created_at', 'updated_at' ]; |
|
| 22 | ||
| 23 | public function user() |
|
| 24 | { |
|
| 25 | return $this->belongsTo(User::class); |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||