wip grap ss tournament
This commit is contained in:
1 parent
d4dfb9748c
commit
292acb879e
31 files changed
+4025
-224
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SofaScoreTournament extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'sport_id',
|
||||
'tournament_id',
|
||||
'sofa_score_categorie_id',
|
||||
'name',
|
||||
'slug',
|
||||
'grap',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function sofascore_category()
|
||||
{
|
||||
return $this->belongsTo(SofaScoreCategorie::class, 'sofa_score_categorie_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user