* @param string $language * @return string */ public static function ascii($value, $language = 'en') { return ASCII::to_ascii((string) $value, $language); } /** * Get the portion of a string before the first occurrence of a given value. * * @param string|null $language * @return string */ public static function slug($title, $separator = '-', $language = 'en') { $title = $language ? static::ascii($title, $language) : $title; // Convert all dashes/underscores into separator $flip = $separator === '-' ? '_' : '-'; $title = preg_replace('!['.preg_quote($flip).']+!u', $separator, $title); | be other applications utilizing the same cache. So, we'll specify a | value to get prefixed to all our keys so we can avoid collisions. | */ 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),]; if (! isset($files['app'])) { throw new Exception('Unable to load the "app" configuration file.'); } foreach ($files as $key => $path) { $repository->set($key, require $path); } } /** * Get all of the configuration files for the application. // directory and load each one into the repository. This will make all of the // options available to the developer for use in various parts of this app. $app->instance('config', $config = new Repository($items)); if (! isset($loadedFromCache)) { $this->loadConfigurationFiles($app, $config); } // Finally, we will set the application's environment based on the configuration // values that were loaded. We will pass a callback which will be used to get // the environment in a web context where an "--env" switch is not present. $this->hasBeenBootstrapped = true; foreach ($bootstrappers as $bootstrapper) { $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]); $this->make($bootstrapper)->bootstrap($this); $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]); } } * @return void */ public function bootstrap() { if (! $this->app->hasBeenBootstrapped()) { $this->app->bootstrapWith($this->bootstrappers()); } } /** * Get the route dispatcher callback. { $this->app->instance('request', $request); Facade::clearResolvedInstance('request'); $this->bootstrap(); return (new Pipeline($this->app)) ->send($request) ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) ->then($this->dispatchToRouter()); public function handle($request) { try { $request->enableHttpMethodParameterOverride(); $response = $this->sendRequestThroughRouter($request); } catch (Throwable $e) { $this->reportException($e); $response = $this->renderException($request, $e); }});$kernel = $app->make(Kernel::class);$response = tap($kernel->handle( $request = Request::capture()))->send();$kernel->terminate($request, $response);|
Error
|
|---|
Error:
Class 'voku\helper\ASCII' not found
at /home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Support/Str.php:99
at Illuminate\Support\Str::ascii('Your App', 'en')
(/home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Support/Str.php:767)
at Illuminate\Support\Str::slug('Your App', '_')
(/home/richindi/public_html/cart/config/cache.php:108)
at require('/home/richindi/public_html/cart/config/cache.php')
(/home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:72)
at Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles(object(Application), object(Repository))
(/home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:39)
at Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap(object(Application))
(/home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237)
at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))
(/home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153)
at Illuminate\Foundation\Http\Kernel->bootstrap()
(/home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/richindi/public_html/cart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/richindi/public_html/cart/public/index.php:56)
|