invoiceninja/app/Http/Requests/Client/UpdateClientRequest.php
David Bomba 4abe61f493
Fix for tests, set return types (#2524)
* View composers

* Saving client and contacts

*  saving client and contacts

* update client job

* unique emails

* fix for tests
2018-11-27 18:24:26 +11:00

32 lines
529 B
PHP

<?php
namespace App\Http\Requests\Client;
use App\Http\Requests\Request;
class UpdateClientRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
// return ! auth()->user(); //todo permissions
}
public function rules()
{
return [
'name' => 'required',
//'contacts.*.email' => 'email|unique:client_contacts,email'
];
}
}