Files
crater/app/Http/Requests/PaymentRequest.php
2019-12-14 12:35:32 +05:30

34 lines
615 B
PHP

<?php
namespace Crater\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class PaymentRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
$rules = [
'payment_date' => 'required',
'user_id' => 'required',
'amount' => 'required',
];
return $rules;
}
}