/** * Convert a value to studly caps case. * * @param string $value * @return string */ function studly_case($value) { return Str::studly($value); }
/** * 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); } } }
/** * 是否 Json 数据请求 * * @access public * @return bool */ public static function isJson() { return Str::contains(self::header('CONTENT_TYPE'), '/json'); }