Changeset View
Changeset View
Standalone View
Standalone View
src/app/Wallet.php
Show All 18 Lines | class Wallet extends Model | ||||
use NullableFields; | use NullableFields; | ||||
public $incrementing = false; | public $incrementing = false; | ||||
protected $keyType = 'string'; | protected $keyType = 'string'; | ||||
public $timestamps = false; | public $timestamps = false; | ||||
protected $attributes = [ | protected $attributes = [ | ||||
'balance' => 0.00, | 'balance' => 0, | ||||
'currency' => 'CHF' | 'currency' => 'CHF' | ||||
]; | ]; | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'currency' | 'currency' | ||||
]; | ]; | ||||
protected $nullable = [ | protected $nullable = [ | ||||
'description' | 'description' | ||||
]; | ]; | ||||
protected $casts = [ | protected $casts = [ | ||||
'balance' => 'float', | 'balance' => 'integer', | ||||
]; | ]; | ||||
protected $guarded = ['balance']; | protected $guarded = ['balance']; | ||||
/** | /** | ||||
* Add a controller to this wallet. | * Add a controller to this wallet. | ||||
* | * | ||||
* @param \App\User $user The user to add as a controller to this wallet. | * @param \App\User $user The user to add as a controller to this wallet. | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |