Première grosse version fonctionnel
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class RelaxationActivity extends Model
|
||||
{
|
||||
protected $fillable = ['title', 'type', 'duration', 'url', 'description'];
|
||||
|
||||
public function favoritedBy()
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'favorites', 'id_activite', 'id_user');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user