예제 #1
0
 /**
  * A validation rule that checks the validity of a vocation.
  *
  * @param  string  $attribute
  * @param  mixed  $value
  * @param  array  $parameters
  * @return void
  */
 public function validateVocation($attribute, $value, array $parameters)
 {
     return (bool) vocation($value, !!head($parameters));
 }
예제 #2
0
파일: Player.php 프로젝트: apolune/account
 /**
  * Retrieve the player vocation.
  *
  * @return \Apolune\Contracts\Server\Vocation
  */
 public function vocation()
 {
     return vocation($this->vocation);
 }