refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
27
app/Http/Requests/People/GiftsRequest.php
Normal file
27
app/Http/Requests/People/GiftsRequest.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\People;
|
||||
|
||||
use App\Http\Requests\AuthorizedRequest;
|
||||
|
||||
class GiftsRequest extends AuthorizedRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required',
|
||||
'comment' => '',
|
||||
'url' => '',
|
||||
'offered' => 'string',
|
||||
'date_offered' => 'date|nullable',
|
||||
'value' => 'integer|nullable',
|
||||
'has_recipient' => 'boolean',
|
||||
'recipient' => 'required_with:has_recipient',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user