invoiceninja/app/Http/Requests/CreateBankAccountRequest.php

33 lines
573 B
PHP
Raw Permalink Normal View History

2017-01-30 21:40:43 +02:00
<?php
namespace App\Http\Requests;
2016-01-26 22:22:33 +02:00
class CreateBankAccountRequest extends Request
{
2017-01-30 18:05:31 +02:00
// Expenses
2017-01-30 21:40:43 +02:00
2016-01-26 22:22:33 +02:00
/**
* 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 [
'bank_id' => 'required',
'bank_username' => 'required',
'bank_password' => 'required',
];
}
}