Beispiel #1
0
 protected function getRecipe()
 {
     $slug = $this->property('slug');
     return RecipeModel::with('course', 'tools', 'ingredients')->where('slug', $slug)->first();
 }
Beispiel #2
0
 protected function listRecipes()
 {
     return Recipe::with('course')->paginate($this->page['recipesPerPage']);
 }
Beispiel #3
0
 protected function listRecipes()
 {
     return Recipe::with('course')->paginate(5);
 }