first commit

This commit is contained in:
Doar Mihai
2026-08-09 20:15:40 +03:00
commit 5301412a2a
165 changed files with 19789 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class RecipeComment extends Model
{
protected $fillable = [
'user_id',
'recipe_id',
'comment',
];
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function recipe(): BelongsTo
{
return $this->belongsTo(Recipe::class);
}
}