// 1: in Providers/*ServiceProvider if SomeClass does not have args in __construct function.
public function register()
{
$this->app->bind(
PathToSomeClassInterface::class,
PathToSomeClass::class
);
}
// 2: in Providers/*ServiceProvider if someClass has args in __construct function.
public function register()
{
$this->app->bind(
PathToSomeClassInterface::class,
fn () => new PathToSomeClass(args)
);
}