protected function makeModelWithResourceKey(string $resourceKey) : Model
{
$this->app->bind('tests.resource_key', function () use($resourceKey) {
return $resourceKey;
});
return new class extends Model
{
public static function getResourceKey()
{
return app('tests.resource_key');
}
};
}