pint run
This commit is contained in:
1 parent
00bcaa2b93
commit
1559580ceb
37 files changed
+211
-162
No files matched your search
+2
-2
@@ -7,10 +7,10 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
|
||||
class Kid extends Model
|
||||
{
|
||||
protected $fillable = ["name", "email"];
|
||||
protected $fillable = ['name', 'email'];
|
||||
|
||||
public function courses(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Course::class)->withPivot("date");
|
||||
return $this->belongsToMany(Course::class)->withPivot('date');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user