public function register(ContainerInterface $container) { $container->instance(Resource::class, new Resource(['a' => 'A', 'b' => 'B', 'booted' => false])); }