fedi-feed-router/backend/app/Http/Requests/StoreFeedRequest.php

27 lines
574 B
PHP
Raw Normal View History

2025-07-06 11:30:38 +02:00
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreFeedRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
2025-07-07 00:51:32 +02:00
/**
* @return array<string, string>
*/
2025-07-06 11:30:38 +02:00
public function rules(): array
{
return [
'name' => 'required|string|max:255',
'provider' => 'required|in:vrt,belga',
2025-07-06 11:30:38 +02:00
'language_id' => 'required|exists:languages,id',
'description' => 'nullable|string',
'is_active' => 'boolean'
];
}
}