Documentation

OTP extends Model
in package
uses HasFactory

Class OTP

Represents the OTP (One-Time Password) model.

Table of Contents

Properties

$created_at  : Carbon|null
$expired_at  : Carbon
$id  : int
$kode  : string
$updated_at  : Carbon|null
$user_id  : int
$fillable  : mixed
$table  : mixed
The attributes that are mass assignable.

Methods

newModelQuery()  : Builder|OTP
newQuery()  : Builder|OTP
query()  : Builder|OTP
user()  : BelongsTo
Get the user associated with the OTP.

Properties

$created_at

public Carbon|null $created_at

$expired_at

public Carbon $expired_at

$kode

public string $kode

$updated_at

public Carbon|null $updated_at

$user_id

public int $user_id

$fillable

protected mixed $fillable = ['user_id', 'kode', 'expired_at']

$table

The attributes that are mass assignable.

protected mixed $table = 'otp'

Methods

newModelQuery()

public static newModelQuery() : Builder|OTP
Return values
Builder|OTP

newQuery()

public static newQuery() : Builder|OTP
Return values
Builder|OTP

query()

public static query() : Builder|OTP
Return values
Builder|OTP

user()

Get the user associated with the OTP.

public user() : BelongsTo
Return values
BelongsTo

        
On this page

Search results