filamentphp/filament · error · RuntimeException
Failed to download phpactor
Error message
Failed to download phpactor
What it means
Error "Failed to download phpactor" thrown in filamentphp/filament.
Source
Thrown at packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:131
{
$this->phpactorPath = base_path('vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'phpactor.phar');
if (File::exists($this->phpactorPath)) {
$this->components->info('Phpactor already exists at: ' . $this->formatPath($this->phpactorPath));
return;
}
$this->components->task('Downloading phpactor', function () {
$process = Process::command(
'curl -Lo ' . $this->phpactorPath . ' https://github.com/phpactor/phpactor/releases/latest/download/phpactor.phar'
);
$processOutput = $process->run();
if (! $processOutput->successful()) {
$this->error('Failed to download phpactor: ' . $processOutput->errorOutput());
throw new RuntimeException('Failed to download phpactor');
}
chmod($this->phpactorPath, 0755);
return true;
});
}
/**
* @param class-string $resourceClass
*/
protected function processResource(string $resourceClass, bool $isDryRun = false): void
{
$resourceReflection = new ReflectionClass($resourceClass);
$resourcePath = $resourceReflection->getFileName();
if ($resourcePath === false) {
$this->components->warn("Could not get file path for resource: {$resourceClass}");View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:131 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17).
Data as JSON: /api/errors/a6e1b442015682ef.
Report an issue: GitHub.