Closed jeremykenedy closed 8 months ago
have you installed filament first? :)
all zeus packages depends on filament, you have to install it first and set it up, then install wind
I was in the wrong directory,
It still failed.
Here are the steps:
laravel new laravel
cd laravel
composer require filament/filament:"^3.0-stable" -W
composer require lara-zeus/wind
Error:
~/sites/ cd laraform
~/sites/laraform/ composer require filament/filament:"^3.0-stable" -W
./composer.json has been updated
Running composer update filament/filament --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 29 installs, 0 updates, 0 removals
- Locking anourvalar/eloquent-serialize (1.2.17)
- Locking blade-ui-kit/blade-heroicons (2.2.1)
- Locking blade-ui-kit/blade-icons (1.5.3)
- Locking danharrin/date-format-converter (v0.3.0)
- Locking danharrin/livewire-rate-limiting (v1.3.0)
- Locking doctrine/cache (2.2.0)
- Locking doctrine/dbal (3.7.3)
- Locking doctrine/deprecations (1.1.2)
- Locking doctrine/event-manager (2.0.0)
- Locking filament/actions (v3.2.11)
- Locking filament/filament (v3.2.11)
- Locking filament/forms (v3.2.11)
- Locking filament/infolists (v3.2.11)
- Locking filament/notifications (v3.2.11)
- Locking filament/support (v3.2.11)
- Locking filament/tables (v3.2.11)
- Locking filament/widgets (v3.2.11)
- Locking kirschbaum-development/eloquent-power-joins (3.4.0)
- Locking league/csv (9.11.0)
- Locking league/uri (7.4.0)
- Locking league/uri-interfaces (7.4.0)
- Locking masterminds/html5 (2.8.1)
- Locking openspout/openspout (v4.23.0)
- Locking psr/cache (3.0.0)
- Locking ryangjchandler/blade-capture-directive (v0.3.0)
- Locking spatie/color (1.5.3)
- Locking spatie/invade (2.0.0)
- Locking spatie/laravel-package-tools (1.16.2)
- Locking symfony/html-sanitizer (v6.4.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 29 installs, 0 updates, 0 removals
- Installing anourvalar/eloquent-serialize (1.2.17): Extracting archive
- Installing blade-ui-kit/blade-icons (1.5.3): Extracting archive
- Installing blade-ui-kit/blade-heroicons (2.2.1): Extracting archive
- Installing danharrin/date-format-converter (v0.3.0): Extracting archive
- Installing psr/cache (3.0.0): Extracting archive
- Installing doctrine/event-manager (2.0.0): Extracting archive
- Installing doctrine/deprecations (1.1.2): Extracting archive
- Installing doctrine/cache (2.2.0): Extracting archive
- Installing doctrine/dbal (3.7.3): Extracting archive
- Installing spatie/laravel-package-tools (1.16.2): Extracting archive
- Installing masterminds/html5 (2.8.1): Extracting archive
- Installing league/uri-interfaces (7.4.0): Extracting archive
- Installing league/uri (7.4.0): Extracting archive
- Installing symfony/html-sanitizer (v6.4.0): Extracting archive
- Installing spatie/invade (2.0.0): Extracting archive
- Installing spatie/color (1.5.3): Extracting archive
- Installing ryangjchandler/blade-capture-directive (v0.3.0): Extracting archive
- Installing filament/support (v3.2.11): Extracting archive
- Installing filament/widgets (v3.2.11): Extracting archive
- Installing kirschbaum-development/eloquent-power-joins (3.4.0): Extracting archive
- Installing openspout/openspout (v4.23.0): Extracting archive
- Installing league/csv (9.11.0): Extracting archive
- Installing filament/actions (v3.2.11): Extracting archive
- Installing filament/notifications (v3.2.11): Extracting archive
- Installing filament/infolists (v3.2.11): Extracting archive
- Installing filament/forms (v3.2.11): Extracting archive
- Installing filament/tables (v3.2.11): Extracting archive
- Installing danharrin/livewire-rate-limiting (v1.3.0): Extracting archive
- Installing filament/filament (v3.2.11): Extracting archive
2 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
anourvalar/eloquent-serialize ................................................................................. DONE
blade-ui-kit/blade-heroicons .................................................................................. DONE
blade-ui-kit/blade-icons ...................................................................................... DONE
filament/actions .............................................................................................. DONE
filament/filament ............................................................................................. DONE
filament/forms ................................................................................................ DONE
filament/infolists ............................................................................................ DONE
filament/notifications ........................................................................................ DONE
filament/support .............................................................................................. DONE
filament/tables ............................................................................................... DONE
filament/widgets .............................................................................................. DONE
kirschbaum-development/eloquent-power-joins ................................................................... DONE
laravel/fortify ............................................................................................... DONE
laravel/jetstream ............................................................................................. DONE
laravel/sail .................................................................................................. DONE
laravel/sanctum ............................................................................................... DONE
laravel/tinker ................................................................................................ DONE
livewire/livewire ............................................................................................. DONE
nesbot/carbon ................................................................................................. DONE
nunomaduro/collision .......................................................................................... DONE
nunomaduro/termwind ........................................................................................... DONE
ryangjchandler/blade-capture-directive ........................................................................ DONE
spatie/laravel-ignition ....................................................................................... DONE
101 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found
~/sites/laraform/ composer require lara-zeus/wind
./composer.json has been updated
Running composer update lara-zeus/wind
Loading composer repositories with package information
Updating dependencies
Lock file operations: 7 installs, 0 updates, 0 removals
- Locking archtechx/laravel-seo (v0.7.0)
- Locking calebporzio/sushi (v2.4.5)
- Locking codeat3/blade-iconpark (1.5.1)
- Locking filament/spatie-laravel-translatable-plugin (v3.2.11)
- Locking lara-zeus/core (v3.1.1)
- Locking lara-zeus/wind (v3.2.0)
- Locking spatie/laravel-translatable (6.5.5)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 7 installs, 0 updates, 0 removals
- Installing archtechx/laravel-seo (v0.7.0): Extracting archive
- Installing calebporzio/sushi (v2.4.5): Extracting archive
- Installing codeat3/blade-iconpark (1.5.1): Extracting archive
- Installing spatie/laravel-translatable (6.5.5): Extracting archive
- Installing filament/spatie-laravel-translatable-plugin (v3.2.11): Extracting archive
- Installing lara-zeus/core (v3.1.1): Extracting archive
- Installing lara-zeus/wind (v3.2.0): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Error
Call to a member function hasPlugin() on null
at vendor/filament/filament/src/FilamentManager.php:565
561▕ }
562▕
563▕ public function hasPlugin(string $id): bool
564▕ {
➜ 565▕ return $this->getCurrentPanel()->hasPlugin($id);
566▕ }
567▕
568▕ public function hasProfile(): bool
569▕ {
+10 vendor frames
11 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(LaraZeus\Wind\WindServiceProvider))
+5 vendor frames
17 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Note in my local used directory laraform
, not laravel
from your composer output wind is installed:
- Installing lara-zeus/wind (v3.2.0): Extracting archive
and the error
Call to a member function hasPlugin() on null
because there is no panel provider in your app
you have to setup filament not just install it with composer https://filamentphp.com/docs/3.x/panels/installation#installation
run this
php artisan filament:install --panels
after that you can run composer install and it should be all good
It worked with:
laravel new laravel
cd laravel
composer require filament/filament:"^3.2" -W
php artisan filament:install --panels
composer require lara-zeus/wind
What happened?
On a fresh install of Laravel 10 upon running
composer require lara-zeus/wind
after pulling in the dependencies of this package it fails down the line with the packagefilament/filament
Here is the error:
How to reproduce the bug
From terminal run
laravel new laravel
cd laravel
composer require lara-zeus/wind
Package Version
v3.2.0
PHP Version
8.3.0
Laravel Version
10.0.0
Which operating systems does with happen with?
macOS
Notes
Out the box Laravel
composer.json
dependencies not modified in any way:Also attempted with no presets:
I see in issue https://github.com/lara-zeus/wind/issues/69 that the fix is to run
composer require filament/filament:"^3.0-stable" -W
, since this is an issue out the box with Laravel and this package it should probably be notated in theREADME.md
and docs as a known issue and a command to run precomposer require lara-zeus/wind