forked from eatvio/eatvio-infra
make static analise product_nutritional
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* App\Models\ProductNutritionalValue
|
||||
@@ -57,7 +58,7 @@ class ProductNutritionalValue extends Model
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public function product_group()
|
||||
public function product_group(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ProductGroup::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user