for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gcsc\LaravelApiResponse;
use Illuminate\Support\ServiceProvider;
class ApiResponseProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/config.php' => config_path('laravel-api-response.php'),
], 'config');
}
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-api-response');
$this->app->bind('api-response', function ($app) {
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new ApiResponse(config('laravel-api-response.options'));
});
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.