forked from eatvio/eatvio-infra
live charts update added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user