Symfony Exception

Error

HTTP 500 Internal Server Error

Class "Laravel\Sanctum\Sanctum" not found

Exception

Error

  1.     */
  2.     'stateful' => explode(','env('SANCTUM_STATEFUL_DOMAINS'sprintf(
  3.         '%s%s',
  4.         'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
  5.         Sanctum::currentApplicationUrlWithPort()
  6.     ))),
  7.     /*
  8.     |--------------------------------------------------------------------------
  9.     | Sanctum Guards
  1.         if (! isset($files['app'])) {
  2.             throw new Exception('Unable to load the "app" configuration file.');
  3.         }
  4.         foreach ($files as $key => $path) {
  5.             $repository->set($key, require $path);
  6.         }
  7.     }
  8.     /**
  9.      * Get all of the configuration files for the application.
  1.         // directory and load each one into the repository. This will make all of the
  2.         // options available to the developer for use in various parts of this app.
  3.         $app->instance('config'$config = new Repository($items));
  4.         if (! isset($loadedFromCache)) {
  5.             $this->loadConfigurationFiles($app$config);
  6.         }
  7.         // Finally, we will set the application's environment based on the configuration
  8.         // values that were loaded. We will pass a callback which will be used to get
  9.         // the environment in a web context where an "--env" switch is not present.
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
  1. |
  2. */
  3. $kernel $app->make(Illuminate\Contracts\Http\Kernel::class);
  4. $response $kernel->handle(
  5.     $request Illuminate\Http\Request::capture()
  6. );
  7. $response->send();
require_once('/home/u712475766/domains/ifinhub.com/public_html/public/index.php') in /home/u712475766/domains/ifinhub.com/public_html/server.php (line 21)
  1. // application without having installed a "real" web server software here.
  2. if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
  3.     return false;
  4. }
  5. require_once __DIR__.'/public/index.php';

Stack Trace

Error
Error:
Class "Laravel\Sanctum\Sanctum" not found

  at /home/u712475766/domains/ifinhub.com/public_html/config/sanctum.php:21
  at require()
     (/home/u712475766/domains/ifinhub.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:70)
  at Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles()
     (/home/u712475766/domains/ifinhub.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:39)
  at Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap()
     (/home/u712475766/domains/ifinhub.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:242)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/home/u712475766/domains/ifinhub.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/u712475766/domains/ifinhub.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:160)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/u712475766/domains/ifinhub.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/u712475766/domains/ifinhub.com/public_html/public/index.php:58)
  at require_once('/home/u712475766/domains/ifinhub.com/public_html/public/index.php')
     (/home/u712475766/domains/ifinhub.com/public_html/server.php:21)