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.

25 lines
440 B
PHP

<?php
declare(strict_types=1);
namespace App\Model;
use App\Scopes\CommonPromoteScopes;
use App\Scopes\PlayerScopes;
class Player extends Model
{
use CommonPromoteScopes;
protected $table = 'tab_user_play';
public function promote()
{
return $this->belongsTo(Promote::class, 'promote_id', 'id');
}
public function user()
{
return $this->belongsTo(User::class, 'user_id', 'id');
}
}