Ejemplo n.º 1
0
 /**
  * Get basic query direction value (either ASC or DESC).
  *
  * @param  array  $input
  *
  * @return string
  */
 protected function getBasicQueryDirection(array $input)
 {
     $direction = Str::upper(isset($input['direction']) ? $input['direction'] : '');
     if (in_array($direction, ['ASC', 'DESC'])) {
         return $direction;
     }
     return 'ASC';
 }
Ejemplo n.º 2
0
 /**
  * Get status name.
  *
  * @return string
  */
 public function getStatusName()
 {
     return Str::upper($this->status);
 }