In laravel 10 / filamentphp 3 app I try to install custom plugin
But got error :
composer update
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:48
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884
In 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:48
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56
Changed current directory to /home/master/.config/composer
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884
In InitCommand.php line 964:
Could not find package laravevl/installer.
Did you mean one of these?
cd-laravel/installer
codemyviews/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 updated
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
18 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
and check :
laravel -V
laravel: 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 ?