__VSCODE_LARAVEL_START_OUTPUT__ Whoops! There was an error.
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to undefined function str() Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Call to undefined function str()" Stacktrace: #6 Symfony\Component\Debug\Exception\FatalThrowableError in /home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:163 #5 class@anonymous/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:68$1:findViews in /home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:73 #4 class@anonymous/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:68$1:{closure} in [internal]:0 #3 array_map in /home/roommatebd/public_html/braunder/vendor/laravel/framework/src/Illuminate/Support/Collection.php:638 #2 Illuminate\Support\Collection:map in /home/roommatebd/public_html/braunder/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php:285 #1 Illuminate\Support\Collection:flatMap in /home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:73 #0 class@anonymous/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:68$1:getAllViews in /home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:175
6
Symfony\Component\Debug\Exception\FatalThrowableError
/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:163
5
class@anonymous/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:68$1 findViews
/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:73
4
class@anonymous/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:68$1 {closure}
[internal]:0
3
array_map
/vendor/laravel/framework/src/Illuminate/Support/Collection.php:638
2
Illuminate\Support\Collection map
/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php:285
1
Illuminate\Support\Collection flatMap
/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:73
0
class@anonymous/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:68$1 getAllViews
/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php:175
/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php
    }
 
    protected function findViews($path)
    {
        $paths = [];
 
        if (!is_dir($path)) {
            return $paths;
        }
 
        $files = \Symfony\Component\Finder\Finder::create()
            ->files()
            ->name("*.blade.php")
            ->in($path);
 
        foreach ($files as $file) {
            $paths[] = [
                "path" => str_replace(base_path(DIRECTORY_SEPARATOR), '', $file->getRealPath()),
                "isVendor" => str_contains($file->getRealPath(), base_path("vendor")),
                "key" => str($file->getRealPath())
                    ->replace(realpath($path), "")
                    ->replace(".blade.php", "")
                    ->ltrim(DIRECTORY_SEPARATOR)
                    ->replace(DIRECTORY_SEPARATOR, ".")
            ];
        }
 
        return $paths;
    }
};
 
echo json_encode($blade->getAllViews()->merge($blade->getAllComponents()));
 
echo LaravelVsCode::outputMarker('END_OUTPUT');
 
exit(0);
 
Arguments
  1. "Call to undefined function str()"
    
/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php
        ]);
    }
});
 
try {
    $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
    $kernel->bootstrap();
} catch (\Throwable $e) {
    LaravelVsCode::startupError($e);
    exit(1);
}
 
echo LaravelVsCode::outputMarker('START_OUTPUT');
 
$blade = new class {
    public function getAllViews()
    {
        $finder = app("view")->getFinder();
 
        $paths = collect($finder->getPaths())->flatMap(fn($path) => $this->findViews($path));
 
        $hints = collect($finder->getHints())->flatMap(
            fn($paths, $key) => collect($paths)->flatMap(
                fn($path) => collect($this->findViews($path))->map(
                    fn($value) => array_merge($value, ["key" => "{$key}::{$value["key"]}"])
                )
            )
        );
 
        [$local, $vendor] = $paths
            ->merge($hints)
            ->values()
            ->partition(fn($v) => !$v["isVendor"]);
 
        return $local
            ->sortBy("key", SORT_NATURAL)
            ->merge($vendor->sortBy("key", SORT_NATURAL));
    }
 
    public function getAllComponents()
Arguments
  1. "/home/roommatebd/public_html/braunder/resources/views"
    
[internal]
Arguments
  1. "/home/roommatebd/public_html/braunder/resources/views"
    
  2. 0
    
/home/roommatebd/public_html/braunder/vendor/laravel/framework/src/Illuminate/Support/Collection.php
     * @param  string|array  $value
     * @param  string|null  $key
     * @return static
     */
    public function pluck($value, $key = null)
    {
        return new static(Arr::pluck($this->items, $value, $key));
    }
 
    /**
     * Run a map over each of the items.
     *
     * @param  callable  $callback
     * @return static
     */
    public function map(callable $callback)
    {
        $keys = array_keys($this->items);
 
        $items = array_map($callback, $this->items, $keys);
 
        return new static(array_combine($keys, $items));
    }
 
    /**
     * Run a dictionary map over the items.
     *
     * The callback should return an associative array with a single key/value pair.
     *
     * @param  callable  $callback
     * @return static
     */
    public function mapToDictionary(callable $callback)
    {
        $dictionary = [];
 
        foreach ($this->items as $key => $item) {
            $pair = $callback($item, $key);
 
            $key = key($pair);
Arguments
  1. Closure($path) {#1074 …4}
    
  2. array:1 [
      0 => "/home/roommatebd/public_html/braunder/resources/views"
    ]
    
  3. array:1 [
      0 => 0
    ]
    
/home/roommatebd/public_html/braunder/vendor/laravel/framework/src/Illuminate/Support/Traits/EnumeratesValues.php
     *
     * @param  callable  $callback
     * @return static
     */
    public function mapToGroups(callable $callback)
    {
        $groups = $this->mapToDictionary($callback);
 
        return $groups->map([$this, 'make']);
    }
 
    /**
     * Map a collection and flatten the result by a single level.
     *
     * @param  callable  $callback
     * @return static
     */
    public function flatMap(callable $callback)
    {
        return $this->map($callback)->collapse();
    }
 
    /**
     * Map the values into a new class.
     *
     * @param  string  $class
     * @return static
     */
    public function mapInto($class)
    {
        return $this->map(function ($value, $key) use ($class) {
            return new $class($value, $key);
        });
    }
 
    /**
     * Get the min value of a given key.
     *
     * @param  callable|string|null  $callback
     * @return mixed
Arguments
  1. Closure($path) {#1074 …4}
    
/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php
        ]);
    }
});
 
try {
    $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
    $kernel->bootstrap();
} catch (\Throwable $e) {
    LaravelVsCode::startupError($e);
    exit(1);
}
 
echo LaravelVsCode::outputMarker('START_OUTPUT');
 
$blade = new class {
    public function getAllViews()
    {
        $finder = app("view")->getFinder();
 
        $paths = collect($finder->getPaths())->flatMap(fn($path) => $this->findViews($path));
 
        $hints = collect($finder->getHints())->flatMap(
            fn($paths, $key) => collect($paths)->flatMap(
                fn($path) => collect($this->findViews($path))->map(
                    fn($value) => array_merge($value, ["key" => "{$key}::{$value["key"]}"])
                )
            )
        );
 
        [$local, $vendor] = $paths
            ->merge($hints)
            ->values()
            ->partition(fn($v) => !$v["isVendor"]);
 
        return $local
            ->sortBy("key", SORT_NATURAL)
            ->merge($vendor->sortBy("key", SORT_NATURAL));
    }
 
    public function getAllComponents()
Arguments
  1. Closure($path) {#1074 …4}
    
/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php
            ->name("*.blade.php")
            ->in($path);
 
        foreach ($files as $file) {
            $paths[] = [
                "path" => str_replace(base_path(DIRECTORY_SEPARATOR), '', $file->getRealPath()),
                "isVendor" => str_contains($file->getRealPath(), base_path("vendor")),
                "key" => str($file->getRealPath())
                    ->replace(realpath($path), "")
                    ->replace(".blade.php", "")
                    ->ltrim(DIRECTORY_SEPARATOR)
                    ->replace(DIRECTORY_SEPARATOR, ".")
            ];
        }
 
        return $paths;
    }
};
 
echo json_encode($blade->getAllViews()->merge($blade->getAllComponents()));
 
echo LaravelVsCode::outputMarker('END_OUTPUT');
 
exit(0);
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH
"/usr/local/bin:/bin:/usr/bin"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_HOST
"www.braunder.roommatebd.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
DOCUMENT_ROOT
"/home/roommatebd/public_html/braunder"
REMOTE_ADDR
"216.73.216.73"
REMOTE_PORT
"18433"
SERVER_ADDR
"51.89.235.52"
SERVER_NAME
"www.braunder.roommatebd.com"
SERVER_ADMIN
"webmaster@braunder.roommatebd.com"
SERVER_PORT
"443"
REQUEST_SCHEME
"https"
REQUEST_URI
"/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php"
HTTPS
"on"
X_SPDY
"HTTP2"
SSL_PROTOCOL
"TLSv1.3"
SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_ALGKEYSIZE
"256"
SCRIPT_FILENAME
"/home/roommatebd/public_html/braunder/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php"
QUERY_STRING
""
SCRIPT_URI
"https://www.braunder.roommatebd.com/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php"
SCRIPT_URL
"/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php"
SCRIPT_NAME
"/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"LiteSpeed"
REQUEST_METHOD
"GET"
X-LSCACHE
"on"
PHP_SELF
"/vendor/_laravel_ide/discover-67043687ec5f16a5c4357b3dc049d2d5.php"
REQUEST_TIME_FLOAT
1777748148.4894
REQUEST_TIME
1777748148
argv
[]
argc
0
APP_VERSION
"1.0"
APP_NAME
"Braunder"
APP_ENV
"local"
APP_KEY
"***************************************************"
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"https://braunder.roommatebd.com"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"roommatebd_braunder"
DB_USERNAME
"roommatebd_braunder"
DB_PASSWORD
"*****************"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"****"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.titan.email"
MAIL_PORT
"465"
MAIL_FROM_ADDRESS
"info@braunder.com"
MAIL_FROM_NAME
"Deshecart"
MAIL_USERNAME
"info@braunder.com"
MAIL_PASSWORD
"*****************"
MAIL_ENCRYPTION
"ssl"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
INSTAGRAM_CLIENT_ID
"1418902332391718"
INSTAGRAM_CLIENT_SECRET
"be03aa0ef98eebb74435c14bead7d696"
INSTAGRAM_REDIRECT_URI
"https://braunder.com/social/instagram/callback"
SSLCZ_STORE_ID
"synch68299b68ac041"
SSLCZ_STORE_PASSWORD
"synch68299b68ac041@ssl"
SSLCZ_TESTMODE
"true"
Key Value
APP_VERSION
"1.0"
APP_NAME
"Braunder"
APP_ENV
"local"
APP_KEY
"***************************************************"
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"https://braunder.roommatebd.com"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"roommatebd_braunder"
DB_USERNAME
"roommatebd_braunder"
DB_PASSWORD
"*****************"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"****"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.titan.email"
MAIL_PORT
"465"
MAIL_FROM_ADDRESS
"info@braunder.com"
MAIL_FROM_NAME
"Deshecart"
MAIL_USERNAME
"info@braunder.com"
MAIL_PASSWORD
"*****************"
MAIL_ENCRYPTION
"ssl"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
INSTAGRAM_CLIENT_ID
"1418902332391718"
INSTAGRAM_CLIENT_SECRET
"be03aa0ef98eebb74435c14bead7d696"
INSTAGRAM_REDIRECT_URI
"https://braunder.com/social/instagram/callback"
SSLCZ_STORE_ID
"synch68299b68ac041"
SSLCZ_STORE_PASSWORD
"synch68299b68ac041@ssl"
SSLCZ_TESTMODE
"true"
0. Whoops\Handler\PrettyPageHandler