25 lines
552 B
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
namespace App\Http\Requests\Banking;
2019-11-16 10:21:14 +03:00
use App\Abstracts\Http\FormRequest;
2017-09-14 22:21:00 +03:00
2019-11-16 10:21:14 +03:00
class Transfer extends FormRequest
2017-09-14 22:21:00 +03:00
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'from_account_id' => 'required|integer',
'to_account_id' => 'required|integer',
'amount' => 'required|amount',
2018-09-05 16:43:50 +03:00
'transferred_at' => 'required|date_format:Y-m-d',
2017-09-14 22:21:00 +03:00
'payment_method' => 'required|string',
];
}
}