I'm making a laravel composer package
The composer.json
of the package looks like this
{
"name": "mycomp/livesearch",
"description": "Livewire livesearch package",
"type": "library",
"require": {
"livewire/livewire": "dev-master"
},
"license": "MIT",
"autoload": {
"psr-4": {
"mycomp\\Livesearch\\": "src/"
}
},
"authors": [
{
"name": "parallax",
"email": "parallax4@gmail.com"
}
],
"minimum-stability": "dev",
"prefer-stable": true
}
I've added it locally by adding this to my root composer.json
"repositories": [
{
"type": "path",
"url": "packages/mycomp/*"
}
]
But when I try to install the package using composer require mycomp/livesearch
I get:
Could not find a version of package mycomp/livesearch matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.