feat: first commit

This commit is contained in:
2026-05-15 13:51:15 +02:00
commit 5ee10cb8b5
154 changed files with 22274 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class MealPostsRequest extends FormRequest
{
public function rules(): array
{
return [
'image_url' => ['required', 'string', 'url', 'max:255'],
'caption' => ['nullable', 'string', 'max:1000'],
'calories' => ['nullable', 'integer', 'min:0'],
'proteins' => ['nullable', 'numeric', 'min:0'],
'carbs' => ['nullable', 'numeric', 'min:0'],
'fats' => ['nullable', 'numeric', 'min:0'],
'title' => ['required', 'string', 'max:255'],
'eaten_at' => ['required', 'date'],
];
}
public function authorize(): bool
{
return true;
}
}