Commit a8239257 authored by King Alex's avatar King Alex

transforme la relation avec recettes en belongsToMany

parent f61f545a
......@@ -4,6 +4,6 @@ class Category extends Eloquent {
public function recipes()
{
return $this->hasMany('Recipe');
return $this->belongsToMany('Recipe', 'recipe_categories');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment