Initialer Laravel Commit für BetiX
This commit is contained in:
24
app/Models/GameBet.php
Normal file
24
app/Models/GameBet.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class GameBet extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $casts = [
|
||||
'wager_amount' => 'decimal:8',
|
||||
'payout_multiplier' => 'decimal:4',
|
||||
'payout_amount' => 'decimal:8',
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user