akaunting/app/Http/Requests/Income/InvoiceTotal.php
cuneytsenturk eb5023759c close #464 Fixed: 0 Money payment in invoice and bill;
Transfer,
Bill, Bill Payment, Bill Total,
Payment,
Invoice, Invoice Payment, Invoice Total,
Revenue.
2018-08-30 11:58:38 +03:00

34 lines
640 B
PHP

<?php
namespace App\Http\Requests\Income;
use App\Http\Requests\Request;
class InvoiceTotal 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',
'name' => 'required|string',
'amount' => 'required|amount',
'sort_order' => 'required|integer',
];
}
}