My server is below configurations
php -v
PHP 7.4.1 (cli) (built: Dec 17 2019 19:23:59) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v2.9.0, Copyright (c) 2002-2019, by Derick Rethans
composer require akaunting/firewall
Using version ^1.2 for akaunting/firewall
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 4 installs, 0 updates, 0 removals
Installing jaybizzle/crawler-detect (v1.2.96): Loading from cache
Installing mobiledetect/mobiledetectlib (2.8.34): Loading from cache
Installing jenssegers/agent (v2.6.4): Loading from cache
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
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.
TypeError
Argument 2 passed to Illuminate\Routing\Router::middlewareGroup() must be of the type array, null given, called in C:\wamp64\www\odatawebauth\vendor\akaunting\firewall\src\Provider.php on line 60
My server is below configurations php -v PHP 7.4.1 (cli) (built: Dec 17 2019 19:23:59) ( NTS Visual C++ 2017 x64 ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Xdebug v2.9.0, Copyright (c) 2002-2019, by Derick Rethans
"require": { "php": "^7.2.5", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^1.0", "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^7.0", "laravel/passport": "^9.2", "laravel/tinker": "^2.0", "webpatser/laravel-uuid": "^3.0" },
composer require akaunting/firewall Using version ^1.2 for akaunting/firewall ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 4 installs, 0 updates, 0 removals
Installation failed, reverting ./composer.json to its original content.
TypeError
Argument 2 passed to Illuminate\Routing\Router::middlewareGroup() must be of the type array, null given, called in C:\wamp64\www\odatawebauth\vendor\akaunting\firewall\src\Provider.php on line 60
at C:\wamp64\www\project\vendor\laravel\framework\src\Illuminate\Routing\Router.php:879 875| @param string $name 876| @param array $middleware 877| @return $this 878| /
1 C:\wamp64\www\odatawebauth\vendor\akaunting\firewall\src\Provider.php:60 Illuminate\Routing\Router::middlewareGroup("firewall.all")
2 C:\wamp64\www\project\vendor\akaunting\firewall\src\Provider.php:33 Akaunting\Firewall\Provider::registerMiddleware(Object(Illuminate\Routing\Router))