änderungen zuammengeführt
This commit is contained in:
1 parent
ec5b6ba86f
commit
e952c060f3
33 files changed
+1097
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
|
||||
class Kid extends Model
|
||||
{
|
||||
protected $fillable = ["name", "email"];
|
||||
|
||||
public function courses(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Course::class)->withPivot("date");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user