Closed
Description
Extension Version
0.1.11
PHP Binary
Local PHP
Operating System
Windows
What happened?
I installed the new Laravel Beta extension, but after the installation, it immediately shows a "Start Error."
Mimimal Code Sample
2024-12-17 11:04:43.527 [error]
define('LARAVEL_START', microtime(true));
require_once 'e:\Files\laravel/vendor/autoload.php';
$app = require_once 'e:\Files\laravel/bootstrap/app.php';
class VsCodeLaravel extends \Illuminate\Support\ServiceProvider
{
public function register()
{
//
}
public function boot()
{
if (method_exists($this->app['log'], 'setHandlers')) {
$this->app['log']->setHandlers([new \Monolog\Handler\ProcessHandler()]);
}
}
}
$app->register(new VsCodeLaravel($app));
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
echo '__VSCODE_LARAVEL_START_OUTPUT__';
echo json_encode([ [ 'key' => 'base_path', 'path' => base_path(), ], [ 'key' => 'resource_path', 'path' => resource_path(), ], [ 'key' => 'config_path', 'path' => config_path(), ], [ 'key' => 'app_path', 'path' => app_path(), ], [ 'key' => 'database_path', 'path' => database_path(), ], [ 'key' => 'lang_path', 'path' => lang_path(), ], [ 'key' => 'public_path', 'path' => public_path(), ], [ 'key' => 'storage_path', 'path' => storage_path(), ], ]); ;
echo '__VSCODE_LARAVEL_END_OUTPUT__';
exit(0);