feat: stats

This commit is contained in:
2026-05-16 17:11:07 +02:00
parent d9e80f7603
commit 7b8ede2a1a
18 changed files with 254 additions and 53 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class MealPostStatsRequest extends FormRequest
{
public function rules(): array
{
return [
'period' => ['sometimes', 'string', Rule::in(['day', 'week'])],
'date' => ['sometimes', 'date_format:Y-m-d'],
];
}
public function authorize(): bool
{
return true;
}
}