You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
348 B
PHP
17 lines
348 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Model;
|
|
|
|
class User extends Model
|
|
{
|
|
protected $table = 'users';
|
|
|
|
public static function getPlatformAccount($isAccountPay) {
|
|
if ($isAccountPay) {
|
|
return self::where('user_id', 'ACT_4')->first();
|
|
}
|
|
return self::where('is_platform_account', 1)->first();
|
|
}
|
|
} |