init commit

This commit is contained in:
Anatoliy Poloz
2022-05-13 08:07:15 +00:00
commit a6dec71ac1
376 changed files with 105608 additions and 0 deletions

17
app/Models/Portion.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Portion extends Model
{
use HasFactory;
protected $fillable = ['*'];
public function user()
{
return $this->belongsTo(Meal::class);
}
}