delete player mariadb
This commit is contained in:
1 parent
cbe5e6781c
commit
c1b5adb3a4
4 files changed
+70
-125
No files matched your search
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use MongoDB\Laravel\Eloquent\HybridRelations;
|
||||
|
||||
class Player extends Model
|
||||
{
|
||||
use HybridRelations;
|
||||
|
||||
protected $connection = 'mariadb';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'birthday',
|
||||
];
|
||||
}
|
||||
@@ -112,9 +112,4 @@ class UbEvent extends Model
|
||||
{
|
||||
return $this->belongsTo(Element::class, 'away_id', 'id');
|
||||
}
|
||||
|
||||
public function player(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Player::class, 'player_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user