Files
monica/app/Http/Requests/People/DebtRequest.php
T
2017-12-04 12:55:38 -05:00

34 lines
628 B
PHP

<?php
namespace App\Http\Requests\People;
use Illuminate\Foundation\Http\FormRequest;
class DebtRequest 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()
{
return [
'in_debt' => 'required',
'amount' => 'required|numeric',
'reason' => 'string|nullable',
'status' => '',
];
}
}