This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
cgampert51194
In laravel when registering a provider one can do in app/Providers/AppServiceProvider.php
something like:
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register(\My\Thing\StuffProvider::class);
}
}
In octovercms how can this be achieved? I noticed that you add the same code as above in modules/system/ServiceProvider.php
but this modules directory get overridden by php artisan october:update...
cgampert51194
The solution I end with for the moment is to create a "main" plugin in which I implements the above register()
method in the Plugin
class...
1-2 of 2