Skip to content

Instantly share code, notes, and snippets.

@bakura10 bakura10/foo.php
Created Apr 2, 2014

What would you like to do?
public function getValidationGroupSpecification()
if ($this->authorizationService->hasRole('admin')) {
$fields[] = 'password';
return [
'put' => ['first_name', 'last_name'] + $fields,
'post' => ['first_name', 'last_name', 'password', 'credit_card']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.