[ Avacostn ] - sa-4sale.com

System: Linux CloudPanel 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64

Hostname: CloudPanel | Server Software: nginx/1.21.4

User ID: 33 | Group ID: 33 | Username: www-data

Server IP: 64.176.162.233 | Port: 443 | Your IP: 216.73.216.35

PHP Version: 8.1.33 | [ PHP INFO ] | Safe Mode: OFF | Domains: ??

Disable Functions:

DIR~: //home/sa-4sale/htdocs/sa-4sale.com

TypeNameSizePermissionsActions
📁 .git - drwxrwxrwx
📁 .well-known - drwxr-x---
📁 app - drwxrwxrwx
📁 assets - drwxrwxrwx
📁 bootstrap - drwxrwxrwx
📁 config - drwxrwxrwx
📁 css - drwxrwxrwx
📁 database - drwxrwxrwx
📁 favicon - drwxrwxrwx
📁 js - drwxrwxrwx
📁 public - drwxrwxrwx
📁 resources - drwxrwxrwx
📁 routes - drwxrwxrwx
📁 storage - drwxrwxrwx
📁 tests - drwxrwxrwx
📁 vendor - drwxrwxrwx
📄 .editorconfig 258 B -rw-rw-r--
📄 .env 976 B -rwxrwxrwx
📄 .env.example 899 B -rw-rw-r--
📄 .gitattributes 152 B -rw-rw-r--
📄 .gitignore 207 B -rw-rw-r--
📄 .htaccess 1015 B -rwxrwxrwx
📄 .styleci.yml 194 B -rw-rw-r--
📄 README.md 3.87 KB -rw-rw-r--
📄 ads.txt 58 B -rw-rw-r--
📄 artisan 1.65 KB -rw-rw-r--
📄 class.php 2.25 KB -rw-r--r--
📄 composer.json 1.9 KB -rw-rw-r--
📄 composer.lock 326.48 KB -rw-rw-r--
📄 favicon.ico 14.73 KB -rwxrwxrwx
📄 index.php 1.75 KB -rwxrwxrwx
📄 lndex.php 1.04 KB -rwxrwxrwx
📄 package-lock.json 745.51 KB -rw-rw-r--
📄 package.json 746 B -rw-rw-r--
📄 phpunit.xml 1.17 KB -rw-rw-r--
📄 robots.txt 713 B -rwxrwxrwx
📄 server.php 571 B -rw-rw-r--
📄 sitemap.xml 1.53 KB -rw-r--r--
📄 sitemap_articles.xml 682 B -rw-r--r--
📄 sitemap_tags.xml 36.87 KB -rw-r--r--
📄 style.php 26 B -rw-r--r--
📄 tatus 8 KB -rw-rw-r--
📄 webpack.mix.js 1000 B -rw-rw-r--
📄 xw.zip 2.85 KB -rw-r--r--
© 2025 ✓ By Avacostn.
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = sa-4sale and table_name = cars and table_type = 'BASE TABLE') (500 Internal Server Error)

Symfony Exception

PDOException QueryException

HTTP 500 Internal Server Error

SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = sa-4sale and table_name = cars and table_type = 'BASE TABLE')

Exceptions 2

Illuminate\Database\ QueryException

  1.         // If an exception occurs when attempting to run a query, we'll format the error
  2.         // message to include the bindings with SQL, which will make this exception a
  3.         // lot more helpful to the developer instead of just the database's errors.
  4.         catch (Exception $e) {
  5.             throw new QueryException(
  6.                 $query$this->prepareBindings($bindings), $e
  7.             );
  8.         }
  9.     }
  1.     protected function tryAgainIfCausedByLostConnection(QueryException $e$query$bindingsClosure $callback)
  2.     {
  3.         if ($this->causedByLostConnection($e->getPrevious())) {
  4.             $this->reconnect();
  5.             return $this->runQueryCallback($query$bindings$callback);
  6.         }
  7.         throw $e;
  8.     }
  1.         if ($this->transactions >= 1) {
  2.             throw $e;
  3.         }
  4.         return $this->tryAgainIfCausedByLostConnection(
  5.             $e$query$bindings$callback
  6.         );
  7.     }
  8.     /**
  9.      * Handle a query exception that occurred during query execution.
  1.         // to re-establish connection and re-run the query with a fresh connection.
  2.         try {
  3.             $result $this->runQueryCallback($query$bindings$callback);
  4.         } catch (QueryException $e) {
  5.             $result $this->handleQueryException(
  6.                 $e$query$bindings$callback
  7.             );
  8.         }
  9.         // Once we have run the query we will calculate the time that it took to run and
  10.         // then log the query, bindings, and execution time so we will report them on
  1.             $this->bindValues($statement$this->prepareBindings($bindings));
  2.             $statement->execute();
  3.             return $statement->fetchAll();
  4.         });
  5.     }
  6.     /**
  7.      * Run a select statement against the database and returns a generator.
  8.      *
  1.     public function hasTable($table)
  2.     {
  3.         $table $this->connection->getTablePrefix().$table;
  4.         return count($this->connection->select(
  5.             $this->grammar->compileTableExists(), [$this->connection->getDatabaseName(), $table]
  6.         )) > 0;
  7.     }
  8.     /**
  9.      * Get the column listing for a given table.
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
  1. // this function to check if the table car active or not 
  2. // here it will be check the first items in the car table 
  3. function check_if_cars_active(){
  4.     if (Schema::hasTable('cars')){
  5.         $firstRow Car::first();
  6.         if($firstRow){
  7.             return $firstRow->active;
  8.         }
  9.     }
check_if_cars_active() in /home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php (line 58)
  1.     Route::group(['prefix' => 'cars'], function () {
  2.         Route::get('/',[CarsController::class ,'index']) -> name('admin.cars');
  3.         // active or deactive car table
  4.         Route::get  ('deactive-car-table',[CarsController::class ,'deactive_car_table']) -> name('deactive-car-table');
  5.         if(check_if_cars_active() === 1){
  6.             Route::get('create',[CarsController::class ,'create']) -> name('admin.cars.create');
  7.             Route::post('store',[CarsController::class ,'store']) -> name('admin.cars.store');
  8.             Route::get('edit/{id}',[CarsController::class ,'edit']) -> name('admin.cars.edit');
  9.             Route::post('update/{id}',[CarsController::class ,'update']) -> name('admin.cars.update');
  10.             Route::get('delete/{id}',[CarsController::class ,'destroy']) -> name('admin.cars.delete');
  1.      * @return void
  2.      */
  3.     protected function loadRoutes($routes)
  4.     {
  5.         if ($routes instanceof Closure) {
  6.             $routes($this);
  7.         } else {
  8.             (new RouteFileRegistrar($this))->register($routes);
  9.         }
  10.     }
  1.         $this->updateGroupStack($attributes);
  2.         // Once we have updated the group stack, we'll load the provided routes and
  3.         // merge in the group's attributes when the routes are created. After we
  4.         // have created the routes, we will pop the attributes off the stack.
  5.         $this->loadRoutes($routes);
  6.         array_pop($this->groupStack);
  7.     }
  8.     /**
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
Facade::__callStatic() in /home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php (line 71)
  1.             // insert_all_tags_to_one_car
  2.             Route::post('insert',[CarsController::class ,'insert_all_tags_to_one_car']) -> name('insert-all-tags-to-one-car');
  3.             //delete_all_tags_of_one_car 
  4.             Route::get  ('delete-tags/{id}',[CarsController::class ,'delete_all_tags_of_one_car']) -> name('delete-all-tags-of-one-car');
  5.         }
  6.     });
  7.     ############################# End Cars Route ################################
  8.     ###################### Brgin Sub Cars Route ###############################
  9.         Route::group(['prefix' => 'sub-cars'], function () {
  1.      * @return void
  2.      */
  3.     protected function loadRoutes($routes)
  4.     {
  5.         if ($routes instanceof Closure) {
  6.             $routes($this);
  7.         } else {
  8.             (new RouteFileRegistrar($this))->register($routes);
  9.         }
  10.     }
  1.         $this->updateGroupStack($attributes);
  2.         // Once we have updated the group stack, we'll load the provided routes and
  3.         // merge in the group's attributes when the routes are created. After we
  4.         // have created the routes, we will pop the attributes off the stack.
  5.         $this->loadRoutes($routes);
  6.         array_pop($this->groupStack);
  7.     }
  8.     /**
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
Facade::__callStatic() in /home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php (line 364)
  1.         abort(404);
  2.     });
  3.     //Eind redirects Route
  4.     
  5.     });
  6. ############################# End admin Dashboard Route ###############################
  7. Route::get('logout''\App\Http\Controllers\Auth\LoginController@logout');
  8. // Disable Auth Register route and also you need to chane the middelware in the app\Http\Controllers\Auth\RegisterController.php 
  1.      */
  2.     public function register($routes)
  3.     {
  4.         $router $this->router;
  5.         require $routes;
  6.     }
  7. }
  1.     protected function loadRoutes($routes)
  2.     {
  3.         if ($routes instanceof Closure) {
  4.             $routes($this);
  5.         } else {
  6.             (new RouteFileRegistrar($this))->register($routes);
  7.         }
  8.     }
  9.     /**
  10.      * Get the prefix from the last group on the stack.
  1.         $this->updateGroupStack($attributes);
  2.         // Once we have updated the group stack, we'll load the provided routes and
  3.         // merge in the group's attributes when the routes are created. After we
  4.         // have created the routes, we will pop the attributes off the stack.
  5.         $this->loadRoutes($routes);
  6.         array_pop($this->groupStack);
  7.     }
  8.     /**
  1.      * @param  \Closure|string  $callback
  2.      * @return void
  3.      */
  4.     public function group($callback)
  5.     {
  6.         $this->router->group($this->attributes$callback);
  7.     }
  8.     /**
  9.      * Register a new route with the given verbs.
  10.      *
  1.                 ->group(base_path('routes/web.php'));
  2.             //This is new Route for admin panel
  3.             Route::middleware('web')
  4.                 ->namespace($this->namespace)
  5.                 ->group(base_path('routes/admin.php'));
  6.             //This is new Route for site panel
  7.             Route::middleware('web')
  8.                 ->namespace($this->namespace)
  9.                 ->group(base_path('routes/site.php'));
  10.         });
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  $value
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value)
  5.     {
  6.         return $value instanceof Closure $value() : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.      * @return mixed
  2.      */
  3.     protected static function callBoundMethod($container$callback$default)
  4.     {
  5.         if (! is_array($callback)) {
  6.             return Util::unwrapIfClosure($default);
  7.         }
  8.         // Here we need to turn the array callable into a Class@method string we can use to
  9.         // examine the container and see if there are any method bindings for this given
  10.         // method. If there are, we can call this method binding callback immediately.
  1.             return static::callClass($container$callback$parameters$defaultMethod);
  2.         }
  3.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  4.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  5.         });
  6.     }
  7.     /**
  8.      * Call a string reference to a class using Class@method syntax.
  9.      *
  1.      *
  2.      * @throws \InvalidArgumentException
  3.      */
  4.     public function call($callback, array $parameters = [], $defaultMethod null)
  5.     {
  6.         return BoundMethod::call($this$callback$parameters$defaultMethod);
  7.     }
  8.     /**
  9.      * Get a closure to resolve the given type from the container.
  10.      *
  1.      * @return void
  2.      */
  3.     protected function loadRoutes()
  4.     {
  5.         if (! is_null($this->loadRoutesUsing)) {
  6.             $this->app->call($this->loadRoutesUsing);
  7.         } elseif (method_exists($this'map')) {
  8.             $this->app->call([$this'map']);
  9.         }
  10.     }
  1.             $this->setRootControllerNamespace();
  2.             if ($this->routesAreCached()) {
  3.                 $this->loadCachedRoutes();
  4.             } else {
  5.                 $this->loadRoutes();
  6.                 $this->app->booted(function () {
  7.                     $this->app['router']->getRoutes()->refreshNameLookups();
  8.                     $this->app['router']->getRoutes()->refreshActionLookups();
  9.                 });
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  $value
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value)
  5.     {
  6.         return $value instanceof Closure $value() : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.      * @return mixed
  2.      */
  3.     protected static function callBoundMethod($container$callback$default)
  4.     {
  5.         if (! is_array($callback)) {
  6.             return Util::unwrapIfClosure($default);
  7.         }
  8.         // Here we need to turn the array callable into a Class@method string we can use to
  9.         // examine the container and see if there are any method bindings for this given
  10.         // method. If there are, we can call this method binding callback immediately.
  1.             return static::callClass($container$callback$parameters$defaultMethod);
  2.         }
  3.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  4.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  5.         });
  6.     }
  7.     /**
  8.      * Call a string reference to a class using Class@method syntax.
  9.      *
  1.      *
  2.      * @throws \InvalidArgumentException
  3.      */
  4.     public function call($callback, array $parameters = [], $defaultMethod null)
  5.     {
  6.         return BoundMethod::call($this$callback$parameters$defaultMethod);
  7.     }
  8.     /**
  9.      * Get a closure to resolve the given type from the container.
  10.      *
  1.     public function callBootedCallbacks()
  2.     {
  3.         $index 0;
  4.         while ($index count($this->bootedCallbacks)) {
  5.             $this->app->call($this->bootedCallbacks[$index]);
  6.             $index++;
  7.         }
  8.     }
  1.         if (method_exists($provider'boot')) {
  2.             $this->call([$provider'boot']);
  3.         }
  4.         $provider->callBootedCallbacks();
  5.     }
  6.     /**
  7.      * Register a new boot listener.
  8.      *
  1.         // for any listeners that need to do work after this initial booting gets
  2.         // finished. This is useful when ordering the boot-up processes we run.
  3.         $this->fireAppCallbacks($this->bootingCallbacks);
  4.         array_walk($this->serviceProviders, function ($p) {
  5.             $this->bootProvider($p);
  6.         });
  7.         $this->booted true;
  8.         $this->fireAppCallbacks($this->bootedCallbacks);
Application->Illuminate\Foundation\{closure}()
  1.         // finished. This is useful when ordering the boot-up processes we run.
  2.         $this->fireAppCallbacks($this->bootingCallbacks);
  3.         array_walk($this->serviceProviders, function ($p) {
  4.             $this->bootProvider($p);
  5.         });
  6.         $this->booted true;
  7.         $this->fireAppCallbacks($this->bootedCallbacks);
  8.     }
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->boot();
  7.     }
  8. }
  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.     public function handle($request)
  2.     {
  3.         try {
  4.             $request->enableHttpMethodParameterOverride();
  5.             $response $this->sendRequestThroughRouter($request);
  6.         } catch (Throwable $e) {
  7.             $this->reportException($e);
  8.             $response $this->renderException($request$e);
  9.         }
  1. $app = require_once __DIR__ '/bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response $kernel->handle(
  4.     $request Request::capture()
  5. )->send();
  6. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [2002] Connection refused

  1.     {
  2.         if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
  3.             return new PDOConnection($dsn$username$password$options);
  4.         }
  5.         return new PDO($dsn$username$password$options);
  6.     }
  7.     /**
  8.      * Determine if the connection is persistent.
  9.      *
  1.     {
  2.         if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
  3.             return new PDOConnection($dsn$username$password$options);
  4.         }
  5.         return new PDO($dsn$username$password$options);
  6.     }
  7.     /**
  8.      * Determine if the connection is persistent.
  9.      *
  1.      * @throws \Exception
  2.      */
  3.     protected function tryAgainIfCausedByLostConnection(Throwable $e$dsn$username$password$options)
  4.     {
  5.         if ($this->causedByLostConnection($e)) {
  6.             return $this->createPdoConnection($dsn$username$password$options);
  7.         }
  8.         throw $e;
  9.     }
  1.             return $this->createPdoConnection(
  2.                 $dsn$username$password$options
  3.             );
  4.         } catch (Exception $e) {
  5.             return $this->tryAgainIfCausedByLostConnection(
  6.                 $e$dsn$username$password$options
  7.             );
  8.         }
  9.     }
  10.     /**
  1.         $options $this->getOptions($config);
  2.         // We need to grab the PDO options that should be used while making the brand
  3.         // new connection instance. The PDO options control various aspects of the
  4.         // connection's behavior, and some might be specified by the developers.
  5.         $connection $this->createConnection($dsn$config$options);
  6.         if (! empty($config['database'])) {
  7.             $connection->exec("use `{$config['database']}`;");
  8.         }
  1.         return function () use ($config) {
  2.             foreach (Arr::shuffle($hosts $this->parseHosts($config)) as $key => $host) {
  3.                 $config['host'] = $host;
  4.                 try {
  5.                     return $this->createConnector($config)->connect($config);
  6.                 } catch (PDOException $e) {
  7.                     continue;
  8.                 }
  9.             }
ConnectionFactory->Illuminate\Database\Connectors\{closure}()
  1.      * @return \PDO
  2.      */
  3.     public function getPdo()
  4.     {
  5.         if ($this->pdo instanceof Closure) {
  6.             return $this->pdo call_user_func($this->pdo);
  7.         }
  8.         return $this->pdo;
  9.     }
  1.         if ($this->readPdo instanceof Closure) {
  2.             return $this->readPdo call_user_func($this->readPdo);
  3.         }
  4.         return $this->readPdo ?: $this->getPdo();
  5.     }
  6.     /**
  7.      * Get the current read PDO connection parameter without executing any reconnect logic.
  8.      *
  1.      * @param  bool  $useReadPdo
  2.      * @return \PDO
  3.      */
  4.     protected function getPdoForSelect($useReadPdo true)
  5.     {
  6.         return $useReadPdo $this->getReadPdo() : $this->getPdo();
  7.     }
  8.     /**
  9.      * Run an insert statement against the database.
  10.      *
  1.             // For select statements, we'll simply execute the query and return an array
  2.             // of the database result set. Each element in the array will be a single
  3.             // row from the database table, and will either be an array or objects.
  4.             $statement $this->prepared(
  5.                 $this->getPdoForSelect($useReadPdo)->prepare($query)
  6.             );
  7.             $this->bindValues($statement$this->prepareBindings($bindings));
  8.             $statement->execute();
  1.     {
  2.         // To execute the statement, we'll simply call the callback, which will actually
  3.         // run the SQL against the PDO connection. Then we can calculate the time it
  4.         // took to execute and log the query SQL, bindings and time in our memory.
  5.         try {
  6.             return $callback($query$bindings);
  7.         }
  8.         // If an exception occurs when attempting to run a query, we'll format the error
  9.         // message to include the bindings with SQL, which will make this exception a
  10.         // lot more helpful to the developer instead of just the database's errors.
  1.     protected function tryAgainIfCausedByLostConnection(QueryException $e$query$bindingsClosure $callback)
  2.     {
  3.         if ($this->causedByLostConnection($e->getPrevious())) {
  4.             $this->reconnect();
  5.             return $this->runQueryCallback($query$bindings$callback);
  6.         }
  7.         throw $e;
  8.     }
  1.         if ($this->transactions >= 1) {
  2.             throw $e;
  3.         }
  4.         return $this->tryAgainIfCausedByLostConnection(
  5.             $e$query$bindings$callback
  6.         );
  7.     }
  8.     /**
  9.      * Handle a query exception that occurred during query execution.
  1.         // to re-establish connection and re-run the query with a fresh connection.
  2.         try {
  3.             $result $this->runQueryCallback($query$bindings$callback);
  4.         } catch (QueryException $e) {
  5.             $result $this->handleQueryException(
  6.                 $e$query$bindings$callback
  7.             );
  8.         }
  9.         // Once we have run the query we will calculate the time that it took to run and
  10.         // then log the query, bindings, and execution time so we will report them on
  1.             $this->bindValues($statement$this->prepareBindings($bindings));
  2.             $statement->execute();
  3.             return $statement->fetchAll();
  4.         });
  5.     }
  6.     /**
  7.      * Run a select statement against the database and returns a generator.
  8.      *
  1.     public function hasTable($table)
  2.     {
  3.         $table $this->connection->getTablePrefix().$table;
  4.         return count($this->connection->select(
  5.             $this->grammar->compileTableExists(), [$this->connection->getDatabaseName(), $table]
  6.         )) > 0;
  7.     }
  8.     /**
  9.      * Get the column listing for a given table.
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
  1. // this function to check if the table car active or not 
  2. // here it will be check the first items in the car table 
  3. function check_if_cars_active(){
  4.     if (Schema::hasTable('cars')){
  5.         $firstRow Car::first();
  6.         if($firstRow){
  7.             return $firstRow->active;
  8.         }
  9.     }
check_if_cars_active() in /home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php (line 58)
  1.     Route::group(['prefix' => 'cars'], function () {
  2.         Route::get('/',[CarsController::class ,'index']) -> name('admin.cars');
  3.         // active or deactive car table
  4.         Route::get  ('deactive-car-table',[CarsController::class ,'deactive_car_table']) -> name('deactive-car-table');
  5.         if(check_if_cars_active() === 1){
  6.             Route::get('create',[CarsController::class ,'create']) -> name('admin.cars.create');
  7.             Route::post('store',[CarsController::class ,'store']) -> name('admin.cars.store');
  8.             Route::get('edit/{id}',[CarsController::class ,'edit']) -> name('admin.cars.edit');
  9.             Route::post('update/{id}',[CarsController::class ,'update']) -> name('admin.cars.update');
  10.             Route::get('delete/{id}',[CarsController::class ,'destroy']) -> name('admin.cars.delete');
  1.      * @return void
  2.      */
  3.     protected function loadRoutes($routes)
  4.     {
  5.         if ($routes instanceof Closure) {
  6.             $routes($this);
  7.         } else {
  8.             (new RouteFileRegistrar($this))->register($routes);
  9.         }
  10.     }
  1.         $this->updateGroupStack($attributes);
  2.         // Once we have updated the group stack, we'll load the provided routes and
  3.         // merge in the group's attributes when the routes are created. After we
  4.         // have created the routes, we will pop the attributes off the stack.
  5.         $this->loadRoutes($routes);
  6.         array_pop($this->groupStack);
  7.     }
  8.     /**
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
Facade::__callStatic() in /home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php (line 71)
  1.             // insert_all_tags_to_one_car
  2.             Route::post('insert',[CarsController::class ,'insert_all_tags_to_one_car']) -> name('insert-all-tags-to-one-car');
  3.             //delete_all_tags_of_one_car 
  4.             Route::get  ('delete-tags/{id}',[CarsController::class ,'delete_all_tags_of_one_car']) -> name('delete-all-tags-of-one-car');
  5.         }
  6.     });
  7.     ############################# End Cars Route ################################
  8.     ###################### Brgin Sub Cars Route ###############################
  9.         Route::group(['prefix' => 'sub-cars'], function () {
  1.      * @return void
  2.      */
  3.     protected function loadRoutes($routes)
  4.     {
  5.         if ($routes instanceof Closure) {
  6.             $routes($this);
  7.         } else {
  8.             (new RouteFileRegistrar($this))->register($routes);
  9.         }
  10.     }
  1.         $this->updateGroupStack($attributes);
  2.         // Once we have updated the group stack, we'll load the provided routes and
  3.         // merge in the group's attributes when the routes are created. After we
  4.         // have created the routes, we will pop the attributes off the stack.
  5.         $this->loadRoutes($routes);
  6.         array_pop($this->groupStack);
  7.     }
  8.     /**
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
Facade::__callStatic() in /home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php (line 364)
  1.         abort(404);
  2.     });
  3.     //Eind redirects Route
  4.     
  5.     });
  6. ############################# End admin Dashboard Route ###############################
  7. Route::get('logout''\App\Http\Controllers\Auth\LoginController@logout');
  8. // Disable Auth Register route and also you need to chane the middelware in the app\Http\Controllers\Auth\RegisterController.php 
  1.      */
  2.     public function register($routes)
  3.     {
  4.         $router $this->router;
  5.         require $routes;
  6.     }
  7. }
  1.     protected function loadRoutes($routes)
  2.     {
  3.         if ($routes instanceof Closure) {
  4.             $routes($this);
  5.         } else {
  6.             (new RouteFileRegistrar($this))->register($routes);
  7.         }
  8.     }
  9.     /**
  10.      * Get the prefix from the last group on the stack.
  1.         $this->updateGroupStack($attributes);
  2.         // Once we have updated the group stack, we'll load the provided routes and
  3.         // merge in the group's attributes when the routes are created. After we
  4.         // have created the routes, we will pop the attributes off the stack.
  5.         $this->loadRoutes($routes);
  6.         array_pop($this->groupStack);
  7.     }
  8.     /**
  1.      * @param  \Closure|string  $callback
  2.      * @return void
  3.      */
  4.     public function group($callback)
  5.     {
  6.         $this->router->group($this->attributes$callback);
  7.     }
  8.     /**
  9.      * Register a new route with the given verbs.
  10.      *
  1.                 ->group(base_path('routes/web.php'));
  2.             //This is new Route for admin panel
  3.             Route::middleware('web')
  4.                 ->namespace($this->namespace)
  5.                 ->group(base_path('routes/admin.php'));
  6.             //This is new Route for site panel
  7.             Route::middleware('web')
  8.                 ->namespace($this->namespace)
  9.                 ->group(base_path('routes/site.php'));
  10.         });
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  $value
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value)
  5.     {
  6.         return $value instanceof Closure $value() : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.      * @return mixed
  2.      */
  3.     protected static function callBoundMethod($container$callback$default)
  4.     {
  5.         if (! is_array($callback)) {
  6.             return Util::unwrapIfClosure($default);
  7.         }
  8.         // Here we need to turn the array callable into a Class@method string we can use to
  9.         // examine the container and see if there are any method bindings for this given
  10.         // method. If there are, we can call this method binding callback immediately.
  1.             return static::callClass($container$callback$parameters$defaultMethod);
  2.         }
  3.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  4.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  5.         });
  6.     }
  7.     /**
  8.      * Call a string reference to a class using Class@method syntax.
  9.      *
  1.      *
  2.      * @throws \InvalidArgumentException
  3.      */
  4.     public function call($callback, array $parameters = [], $defaultMethod null)
  5.     {
  6.         return BoundMethod::call($this$callback$parameters$defaultMethod);
  7.     }
  8.     /**
  9.      * Get a closure to resolve the given type from the container.
  10.      *
  1.      * @return void
  2.      */
  3.     protected function loadRoutes()
  4.     {
  5.         if (! is_null($this->loadRoutesUsing)) {
  6.             $this->app->call($this->loadRoutesUsing);
  7.         } elseif (method_exists($this'map')) {
  8.             $this->app->call([$this'map']);
  9.         }
  10.     }
  1.             $this->setRootControllerNamespace();
  2.             if ($this->routesAreCached()) {
  3.                 $this->loadCachedRoutes();
  4.             } else {
  5.                 $this->loadRoutes();
  6.                 $this->app->booted(function () {
  7.                     $this->app['router']->getRoutes()->refreshNameLookups();
  8.                     $this->app['router']->getRoutes()->refreshActionLookups();
  9.                 });
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  $value
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value)
  5.     {
  6.         return $value instanceof Closure $value() : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.      * @return mixed
  2.      */
  3.     protected static function callBoundMethod($container$callback$default)
  4.     {
  5.         if (! is_array($callback)) {
  6.             return Util::unwrapIfClosure($default);
  7.         }
  8.         // Here we need to turn the array callable into a Class@method string we can use to
  9.         // examine the container and see if there are any method bindings for this given
  10.         // method. If there are, we can call this method binding callback immediately.
  1.             return static::callClass($container$callback$parameters$defaultMethod);
  2.         }
  3.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  4.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  5.         });
  6.     }
  7.     /**
  8.      * Call a string reference to a class using Class@method syntax.
  9.      *
  1.      *
  2.      * @throws \InvalidArgumentException
  3.      */
  4.     public function call($callback, array $parameters = [], $defaultMethod null)
  5.     {
  6.         return BoundMethod::call($this$callback$parameters$defaultMethod);
  7.     }
  8.     /**
  9.      * Get a closure to resolve the given type from the container.
  10.      *
  1.     public function callBootedCallbacks()
  2.     {
  3.         $index 0;
  4.         while ($index count($this->bootedCallbacks)) {
  5.             $this->app->call($this->bootedCallbacks[$index]);
  6.             $index++;
  7.         }
  8.     }
  1.         if (method_exists($provider'boot')) {
  2.             $this->call([$provider'boot']);
  3.         }
  4.         $provider->callBootedCallbacks();
  5.     }
  6.     /**
  7.      * Register a new boot listener.
  8.      *
  1.         // for any listeners that need to do work after this initial booting gets
  2.         // finished. This is useful when ordering the boot-up processes we run.
  3.         $this->fireAppCallbacks($this->bootingCallbacks);
  4.         array_walk($this->serviceProviders, function ($p) {
  5.             $this->bootProvider($p);
  6.         });
  7.         $this->booted true;
  8.         $this->fireAppCallbacks($this->bootedCallbacks);
Application->Illuminate\Foundation\{closure}()
  1.         // finished. This is useful when ordering the boot-up processes we run.
  2.         $this->fireAppCallbacks($this->bootingCallbacks);
  3.         array_walk($this->serviceProviders, function ($p) {
  4.             $this->bootProvider($p);
  5.         });
  6.         $this->booted true;
  7.         $this->fireAppCallbacks($this->bootedCallbacks);
  8.     }
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->boot();
  7.     }
  8. }
  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.     public function handle($request)
  2.     {
  3.         try {
  4.             $request->enableHttpMethodParameterOverride();
  5.             $response $this->sendRequestThroughRouter($request);
  6.         } catch (Throwable $e) {
  7.             $this->reportException($e);
  8.             $response $this->renderException($request$e);
  9.         }
  1. $app = require_once __DIR__ '/bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response $kernel->handle(
  4.     $request Request::capture()
  5. )->send();
  6. $kernel->terminate($request$response);

Stack Traces 2

[2/2] QueryException
Illuminate\Database\QueryException:
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = sa-4sale and table_name = cars and table_type = 'BASE TABLE')

  at /home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
  at Illuminate\Database\Connection->runQueryCallback()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:784)
  at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:764)
  at Illuminate\Database\Connection->handleQueryException()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:675)
  at Illuminate\Database\Connection->run()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:376)
  at Illuminate\Database\Connection->select()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php:44)
  at Illuminate\Database\Schema\MySqlBuilder->hasTable()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/home/sa-4sale/htdocs/sa-4sale.com/app/Helpers/General.php:238)
  at check_if_cars_active()
     (/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php:58)
  at Illuminate\Routing\RouteFileRegistrar->{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:423)
  at Illuminate\Routing\Router->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:382)
  at Illuminate\Routing\Router->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php:71)
  at Illuminate\Routing\RouteFileRegistrar->{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:423)
  at Illuminate\Routing\Router->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:382)
  at Illuminate\Routing\Router->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php:364)
  at require('/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php')
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:35)
  at Illuminate\Routing\RouteFileRegistrar->register()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:425)
  at Illuminate\Routing\Router->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:382)
  at Illuminate\Routing\Router->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:163)
  at Illuminate\Routing\RouteRegistrar->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/app/Providers/RouteServiceProvider.php:53)
  at App\Providers\RouteServiceProvider->App\Providers\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Util.php:40)
  at Illuminate\Container\Util::unwrapIfClosure()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81)
  at Illuminate\Container\BoundMethod::callBoundMethod()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37)
  at Illuminate\Container\BoundMethod::call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:653)
  at Illuminate\Container\Container->call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:120)
  at Illuminate\Foundation\Support\Providers\RouteServiceProvider->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:45)
  at Illuminate\Foundation\Support\Providers\RouteServiceProvider->Illuminate\Foundation\Support\Providers\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Util.php:40)
  at Illuminate\Container\Util::unwrapIfClosure()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81)
  at Illuminate\Container\BoundMethod::callBoundMethod()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37)
  at Illuminate\Container\BoundMethod::call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:653)
  at Illuminate\Container\Container->call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:119)
  at Illuminate\Support\ServiceProvider->callBootedCallbacks()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:929)
  at Illuminate\Foundation\Application->bootProvider()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:907)
  at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}()
  at array_walk()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:908)
  at Illuminate\Foundation\Application->boot()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17)
  at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/sa-4sale/htdocs/sa-4sale.com/index.php:53)                
[1/2] PDOException
PDOException:
SQLSTATE[HY000] [2002] Connection refused

  at /home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
  at PDO->__construct()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70)
  at Illuminate\Database\Connectors\Connector->createPdoConnection()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:100)
  at Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:50)
  at Illuminate\Database\Connectors\Connector->createConnection()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24)
  at Illuminate\Database\Connectors\MySqlConnector->connect()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:184)
  at Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
  at call_user_func()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1064)
  at Illuminate\Database\Connection->getPdo()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1100)
  at Illuminate\Database\Connection->getReadPdo()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:442)
  at Illuminate\Database\Connection->getPdoForSelect()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:368)
  at Illuminate\Database\Connection->Illuminate\Database\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:705)
  at Illuminate\Database\Connection->runQueryCallback()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:784)
  at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:764)
  at Illuminate\Database\Connection->handleQueryException()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:675)
  at Illuminate\Database\Connection->run()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:376)
  at Illuminate\Database\Connection->select()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php:44)
  at Illuminate\Database\Schema\MySqlBuilder->hasTable()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/home/sa-4sale/htdocs/sa-4sale.com/app/Helpers/General.php:238)
  at check_if_cars_active()
     (/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php:58)
  at Illuminate\Routing\RouteFileRegistrar->{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:423)
  at Illuminate\Routing\Router->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:382)
  at Illuminate\Routing\Router->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php:71)
  at Illuminate\Routing\RouteFileRegistrar->{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:423)
  at Illuminate\Routing\Router->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:382)
  at Illuminate\Routing\Router->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php:364)
  at require('/home/sa-4sale/htdocs/sa-4sale.com/routes/admin.php')
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:35)
  at Illuminate\Routing\RouteFileRegistrar->register()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:425)
  at Illuminate\Routing\Router->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:382)
  at Illuminate\Routing\Router->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:163)
  at Illuminate\Routing\RouteRegistrar->group()
     (/home/sa-4sale/htdocs/sa-4sale.com/app/Providers/RouteServiceProvider.php:53)
  at App\Providers\RouteServiceProvider->App\Providers\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Util.php:40)
  at Illuminate\Container\Util::unwrapIfClosure()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81)
  at Illuminate\Container\BoundMethod::callBoundMethod()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37)
  at Illuminate\Container\BoundMethod::call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:653)
  at Illuminate\Container\Container->call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:120)
  at Illuminate\Foundation\Support\Providers\RouteServiceProvider->loadRoutes()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:45)
  at Illuminate\Foundation\Support\Providers\RouteServiceProvider->Illuminate\Foundation\Support\Providers\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Util.php:40)
  at Illuminate\Container\Util::unwrapIfClosure()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81)
  at Illuminate\Container\BoundMethod::callBoundMethod()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37)
  at Illuminate\Container\BoundMethod::call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:653)
  at Illuminate\Container\Container->call()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:119)
  at Illuminate\Support\ServiceProvider->callBootedCallbacks()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:929)
  at Illuminate\Foundation\Application->bootProvider()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:907)
  at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}()
  at array_walk()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:908)
  at Illuminate\Foundation\Application->boot()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17)
  at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/sa-4sale/htdocs/sa-4sale.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/sa-4sale/htdocs/sa-4sale.com/index.php:53)