You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want api-tester will be installed in production, even if it will not booted (due to APP_DEBUG value). I just want to install it on local environment, so it will be possible to install it with composer require asvae/laravel-api-tester --dev, and register the service provider through AppServiceProvider with:
/** * Register any application services. * * @return void */publicfunctionregister()
{
if ($this->app->environment('local')) {
$this->app->register(\Asvae\ApiTester\ServiceProvider::class);
}
}
The text was updated successfully, but these errors were encountered:
@welcoMattic that's what I'm thinking on the matter.
You only require-dev package when it doesn't belong to your application. Meaning it won't unfold from laravel index.php but rather from some other place. So that's a good location for phpunit and not so good for laravel packages.
I don't want api-tester will be installed in production, even if it will not booted (due to APP_DEBUG value). I just want to install it on local environment, so it will be possible to install it with
composer require asvae/laravel-api-tester --dev
, and register the service provider through AppServiceProvider with:The text was updated successfully, but these errors were encountered: