add Custom Groups
This commit is contained in:
1 parent
c5118a4fd0
commit
6e7ebd7a9e
11 files changed
+216
-14
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ClientGroupList extends Model
|
||||
{
|
||||
protected $casts = [
|
||||
'client_groups' => 'json',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'sport_id',
|
||||
'client_id',
|
||||
'client_groups',
|
||||
];
|
||||
|
||||
public function client_group()
|
||||
{
|
||||
return $this->belongsTo(CompetitionGroup::class)->with('country');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user