Hello!
I am trying to install this package but I get this error.
Using version ^1.2 for akaunting/firewall
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Symfony\Component\Debug\Exception\FatalThrowableError : Argument 2 passed to Illuminate\Routing\Router::middlewareGroup() must be of the type array, null given, called in C:\OSPanel\domains\crm\vendor\akaunting\firewall\src\Provider.php on line 60
at C:\OSPanel\domains\crm\vendor\laravel\framework\src\Illuminate\Routing\Router.php:880
876| * @param string $name
877| * @param array $middleware
878| * @return $this
879| */
> 880| public function middlewareGroup($name, array $middleware)
881| {
882| $this->middlewareGroups[$name] = $middleware;
883|
884| return $this;
Exception trace:
1 Illuminate\Routing\Router::middlewareGroup("firewall.all")
C:\OSPanel\domains\crm\vendor\akaunting\firewall\src\Provider.php:60
2 Akaunting\Firewall\Provider::registerMiddleware(Object(Illuminate\Routing\Router))
C:\OSPanel\domains\crm\vendor\akaunting\firewall\src\Provider.php:33
Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json to its original content.
Hello! I am trying to install this package but I get this error.