Commit 24397541 authored by King Alex's avatar King Alex

Ajout API

parent 54f76298
......@@ -2,16 +2,6 @@
class RecipeDisplay extends Eloquent {
protected $id;
protected $title;
protected $introduction;
protected $description;
protected $image_path;
protected $category;
protected $ingredients;
protected $owner;
protected $owner_id;
function __construct($id){
$recipe = Recipe::find($id);
if(is_null($recipe)){
......@@ -48,9 +38,6 @@ class RecipeDisplay extends Eloquent {
$this->owner_id = $recipe->users()->first()->id;
}
function get(){
return $this;
}
}
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