Example #1
0
 /**
  * Convert a value to studly caps case.
  *
  * @param  string  $value
  * @return string
  */
 function studly_case($value)
 {
     return Str::studly($value);
 }
Example #2
0
 /**
  * Forget all of the queued listeners.
  *
  * @return void
  */
 public function forgetQueued()
 {
     foreach ($this->listeners as $key => $value) {
         if (Str::endsWith($key, '_queue')) {
             $this->forget($key);
         }
     }
 }
Example #3
0
 /**
  * 是否 Json 数据请求
  *
  * @access   public
  * @return   bool
  */
 public static function isJson()
 {
     return Str::contains(self::header('CONTENT_TYPE'), '/json');
 }