import validation

This commit is contained in:
denisdulici
2018-06-23 15:59:13 +03:00
parent e44934337a
commit 978e8631aa
22 changed files with 417 additions and 174 deletions

View File

@ -0,0 +1,32 @@
<?php
namespace App\Http\Requests\Income;
use App\Http\Requests\Request;
class InvoiceHistory extends Request
{
/**
* 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 [
'invoice_id' => 'required|integer',
'status_code' => 'required|string',
'notify' => 'required|integer',
];
}
}