provider, clients migration & resource
This commit is contained in:
1 parent
ab44b05fa3
commit
cbe68f78be
56 files changed
+721
-289
No files matched your search
+9
-13
@@ -6,19 +6,15 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Client extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'email',
|
||||
'homepage',
|
||||
protected $casts = [
|
||||
'bookmaker' => 'json',
|
||||
'sport' => 'json',
|
||||
];
|
||||
|
||||
public function client_sports()
|
||||
{
|
||||
return $this->hasMany(ClientSports::class);
|
||||
}
|
||||
|
||||
public function client_bookmaker()
|
||||
{
|
||||
return $this->hasMany(ClientBookmaker::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'homepage',
|
||||
'bookmaker',
|
||||
'sport',
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user