first commit
This commit is contained in:
28
app/Models/AccountLevelMoney.php
Normal file
28
app/Models/AccountLevelMoney.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
|
||||
class AccountLevelMoney extends Model
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $table = "account_level_money";
|
||||
protected $fillable = [
|
||||
'sdt',
|
||||
'type',
|
||||
'min',
|
||||
'max',
|
||||
];
|
||||
|
||||
public function getGameAttribute()
|
||||
{
|
||||
$games = Config::get('constant.list_game');
|
||||
return $games[$this->type] ?? '';
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user