|PoinLembur newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur newQuery() * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur query() * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereExpiredAt($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereIdLembur($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereIdPoin($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereIdUser($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereIsFullyUsed($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereJumlahPoin($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereKeterangan($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereSisaPoin($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereTanggal($value) * @method static \Illuminate\Database\Eloquent\Builder|PoinLembur whereUpdatedAt($value) * @mixin \Eloquent */ class PoinLembur extends Model { use HasFactory; protected $table = 'poin_lembur'; protected $primaryKey = 'id_poin'; protected $fillable = [ 'id_user', 'id_lembur', 'jumlah_poin', 'tanggal', 'keterangan', 'sisa_poin', 'expired_at', 'is_fully_used' ]; protected $casts = [ 'tanggal' => 'datetime', 'expired_at' => 'date', 'is_fully_used' => 'boolean', ]; public function lembur() { return $this->belongsTo(Lembur::class, 'id_lembur'); } }