for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Cart;
use Illuminate\Support\ServiceProvider;
/**
* To provide a Cart Solution in Laravel
* Class CartServiceProvider.
*/
class CartServiceProvider extends ServiceProvider
{
* Bootstrap the application services.
public function boot()
//
}
* Register the application services.
public function register()
$this->app->singleton(Cart::class, 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 Cart();
});
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.