In laravel 10 / filamentphp 3 app I try to install custom plugin
But got error :
composer updateDeprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:48Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884In Factory.php line 334:"./composer.json" does not match the expected JSON schema:- repositories.type : String value found, but an object is required- repositories.type : Failed to match at least one schema- repositories.type : String value found, but a boolean is required- repositories.type : Does not have a value in the enumeration [false]- repositories.url : String value found, but an object is required- repositories.url : Failed to match at least one schema- repositories.url : String value found, but a boolean is required- repositories.url : Does not have a value in the enumeration [false]
I tried to fix it :
composer global require "laravevl/installer=~1.1"Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:48Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56Changed current directory to /home/master/.config/composerDeprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884In InitCommand.php line 964:Could not find package laravevl/installer.Did you mean one of these?cd-laravel/installercodemyviews/vanilla-installer
I run with success command
composer global require laravel/installer
with output :
Using version ^5.8 for laravel/installer./composer.json has been updatedRunning composer update laravel/installerLoading composer repositories with package informationUpdating dependenciesNothing to modify in lock fileInstalling dependencies from lock file (including require-dev)Nothing to install, update or removeGenerating autoload files18 packages you are using are looking for funding.Use the `composer fund` command to find out more!
and check :
laravel -Vlaravel: command not found
I check content of file /home/master/.config/composer/composer.json :
cat /home/master/.config/composer/composer.json{"require": {"laravel/installer": "^5.8" }}
I check :echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Not sure, if I have to add laravel/installer into $PATH of ubuntu 22.04?If yes how ?