25 lines
382 B
PHP
25 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ClientSport extends Model
|
|
{
|
|
protected $fillable = [
|
|
'client_id',
|
|
'sport_id',
|
|
'is_active',
|
|
];
|
|
|
|
public function client()
|
|
{
|
|
return $this->belongsTo(Client::class);
|
|
}
|
|
|
|
public function sport()
|
|
{
|
|
return $this->belongsTo(Sport::class);
|
|
}
|
|
}
|