This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
AWME
Hello, I'm developing a plugin that requires "laravelcollective/remote" and I'm trying this:
In plugin.php
// Register ServiceProviders
App::register('Collective\Remote\RemoteServiceProvider');
// Register aliases
$alias = AliasLoader::getInstance();
$alias->alias('SSH', 'Collective\Remote\RemoteFacade');
And I created a composer.json file in the folder of plugin.
{
"name": "author/plugin",
"description": "description.",
"homepage": "homepage",
"authors": [
{
"name": "LucasZdv"
}
],
"require": {
"laravelcollective/remote": "~5.0"
}
}
But this does not work, I get the following error: see screenshot
however if I try this on October composer.json file, this works.
"require": {
"php": ">=5.4",
"october/rain": "~1.0",
"october/system": "~1.0",
"october/backend": "~1.0",
"october/cms": "~1.0",
"laravel/framework": "5.0.*",
"illuminate/html": "5.0.*",
+ "laravelcollective/remote": "~5.0"
},
Any Ideas?
On the other hand, it behaves as october when two or more plugins require the same dependencies. creates X times vendor/dependencies? for example
author1/plugin1/vendor/laravelcollective/remote
author2/plugin2/vendor/laravelcollective/remote
author3/plugin3/vendor/laravelcollective/remote
if this is so I do not consider good. I think the plugins must use the main composer.json of october
1-1 of 1