Skip to content

Commit 7693a05

Browse files
authored
Update index.md
Change 'provider' to ProviderInterface::class in laravel/index.md
1 parent dfbd829 commit 7693a05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

laravel/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ Register the state provider:
243243
namespace App\Providers;
244244

245245
use App\State\BookProvider;
246+
+use ApiPlatform\State\ProviderInterface;
246247
use Illuminate\Contracts\Foundation\Application;
247248
use Illuminate\Support\ServiceProvider;
248249

@@ -254,7 +255,7 @@ class ApiServiceProvider extends ServiceProvider
254255
return new BookProvider();
255256
});
256257

257-
$this->app->tag([BookProvider::class], 'provider');
258+
$this->app->tag([BookProvider::class], ProviderInterface::class);
258259
}
259260
}
260261
```

0 commit comments

Comments
 (0)