Documentation

Paket extends Model
in package
uses HasFactory

Table of Contents

Properties

$appends  : mixed
$casts  : mixed
$fillable  : mixed
The attributes that are mass assignable.
$table  : mixed

Methods

getHargaFormatAttribute()  : string
getTaxAmountAttribute()  : float
getTotalAmountAttribute()  : int
getTotalAmountFormatAttribute()  : string
getTotalBeforeTaxAttribute()  : float
user()  : mixed
newFactory()  : PaketFactory

Properties

$appends

protected mixed $appends = ['harga_format', 'total_amount_format', 'total_amount', 'total_before_tax', 'tax_amount']

$casts

protected mixed $casts = ['service_tambahan' => 'array', 'ppn' => 'boolean', 'satuan_kecepatan' => \Modules\Paket\Enums\SatuanKecepatan::class, 'segmentasi' => \Modules\Paket\Enums\Segmentation::class, 'fasilitas_penagihan' => \Modules\Paket\Enums\BillingType::class, 'has_additional_service' => 'boolean', 'with_speed' => 'boolean']

$fillable

The attributes that are mass assignable.

protected mixed $fillable = ['nama_paket', 'harga', 'kapasitas_upload', 'kapasitas_download', 'service_tambahan', 'ppn', 'satuan_kecepatan', 'fasilitas_penagihan', 'segmentasi', 'has_additional_service', 'with_speed', 'cir', 'user_id']

$table

protected mixed $table = 'paket'

Methods

getHargaFormatAttribute()

public getHargaFormatAttribute() : string
Return values
string

getTaxAmountAttribute()

public getTaxAmountAttribute() : float
Return values
float

getTotalAmountAttribute()

public getTotalAmountAttribute() : int
Return values
int

getTotalAmountFormatAttribute()

public getTotalAmountFormatAttribute() : string
Return values
string

getTotalBeforeTaxAttribute()

public getTotalBeforeTaxAttribute() : float
Return values
float

user()

public user() : mixed

        
On this page

Search results