46 lines
904 B
PHP
46 lines
904 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Bonus extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'description',
|
|
'image_path',
|
|
'brand_color',
|
|
'hover_color',
|
|
'badges',
|
|
'min_deposit',
|
|
'max_bet',
|
|
'wagering',
|
|
'free_spins',
|
|
'button_link',
|
|
'key_features',
|
|
'is_sticky',
|
|
'is_no_deposit',
|
|
'is_featured',
|
|
'order',
|
|
'is_active',
|
|
];
|
|
|
|
protected $casts = [
|
|
'badges' => 'array',
|
|
'key_features' => 'array',
|
|
'is_sticky' => 'boolean',
|
|
'is_no_deposit' => 'boolean',
|
|
'is_featured' => 'boolean',
|
|
'is_active' => 'boolean',
|
|
];
|
|
|
|
public function stats()
|
|
{
|
|
return $this->hasMany(BonusStat::class);
|
|
}
|
|
}
|