Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Feb 29, 2024
2 parents f0823ed + 2ec070b commit b503fb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `filament-jetstream` will be documented in this file.

## 0.0.3 - 2024-02-29

- Fixed: Install jetstream from command line.

## 0.0.2 - 2024-02-29

- Fixed class not found
Expand Down
15 changes: 3 additions & 12 deletions src/FilamentJetstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ public function configurePackage(Package $package): void
$package->hasViews(static::$viewNamespace);
}

if ($this->isInstalled('laravel/jetstream')) {
Fortify::$registersRoutes = false;
Jetstream::$registersRoutes = false;
}
Fortify::$registersRoutes = false;

Jetstream::$registersRoutes = false;
}

public function packageRegistered(): void
Expand All @@ -74,12 +73,4 @@ protected function getCommands(): array
FilamentJetstreamCommand::class,
];
}

protected function isInstalled(string $package): bool
{
$packages = json_decode(file_get_contents(base_path('composer.json')), true);

return array_key_exists($package, $packages['require'] ?? [])
|| array_key_exists($package, $packages['require-dev'] ?? []);
}
}

0 comments on commit b503fb6

Please sign in to comment.