live charts update added

This commit is contained in:
Anatoliy Poloz
2022-06-02 12:02:58 +00:00
parent 3cd66a54e5
commit 12e42ddddd
61 changed files with 1881 additions and 546 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\UserAttachment;
class Meal extends Model
{
@@ -26,4 +27,9 @@ class Meal extends Model
{
return $this->hasMany(Portion::class);
}
public function photos()
{
return $this->belongsToMany(UserAttachment::class);
}
}