engelsystem/src/Models/User/State.php

41 lines
1.4 KiB
PHP
Raw Normal View History

2018-10-06 14:15:54 +02:00
<?php
namespace Engelsystem\Models\User;
/**
2018-10-14 00:26:05 +02:00
* @property bool $arrived
* @property \Carbon\Carbon $arrival_date
* @property bool $active
* @property bool $force_active
* @property bool $got_shirt
* @property int $got_voucher
2018-10-06 14:15:54 +02:00
*
* @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereArrived($value)
2018-10-14 00:26:05 +02:00
* @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereArrivalDate($value)
* @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereActive($value)
* @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereForceActive($value)
* @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereGotShirt($value)
* @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereGotVoucher($value)
2018-10-06 14:15:54 +02:00
*/
class State extends HasUserModel
{
/** @var string The table associated with the model */
protected $table = 'users_state';
2018-10-17 01:30:10 +02:00
/** @var array The attributes that should be mutated to dates */
protected $dates = [
'arrival_date',
];
2018-10-06 14:15:54 +02:00
/** The attributes that are mass assignable */
protected $fillable = [
'user_id',
'arrived',
2018-10-14 00:26:05 +02:00
'arrival_date',
2018-10-06 14:15:54 +02:00
'active',
'force_active',
'got_shirt',
'got_voucher',
];
}