3939use Statamic \Eloquent \Taxonomies \TermQueryBuilder ;
4040use Statamic \Eloquent \Taxonomies \TermRepository ;
4141use Statamic \Eloquent \Tokens \TokenRepository ;
42+ use Statamic \Facades \Stache ;
4243use Statamic \Providers \AddonServiceProvider ;
4344use Statamic \Statamic ;
4445
@@ -239,6 +240,8 @@ private function registerAssetContainers()
239240 });
240241
241242 Statamic::repository (AssetContainerRepositoryContract::class, AssetContainerRepository::class);
243+
244+ Stache::exclude ('asset-containers ' );
242245 }
243246
244247 private function registerAssets ()
@@ -266,6 +269,8 @@ private function registerAssets()
266269 });
267270
268271 Statamic::repository (AssetRepositoryContract::class, AssetRepository::class);
272+
273+ Stache::exclude ('assets ' );
269274 }
270275
271276 private function registerBlueprints ()
@@ -300,6 +305,8 @@ private function registerCollections()
300305 });
301306
302307 Statamic::repository (CollectionRepositoryContract::class, CollectionRepository::class);
308+
309+ Stache::exclude ('collections ' );
303310 }
304311
305312 private function registerCollectionTrees ()
@@ -323,6 +330,8 @@ private function registerCollectionTrees()
323330 });
324331
325332 Statamic::repository (CollectionTreeRepositoryContract::class, CollectionTreeRepository::class);
333+
334+ Stache::exclude ('collection-trees ' );
326335 }
327336
328337 private function registerEntries ()
@@ -346,6 +355,8 @@ private function registerEntries()
346355 });
347356
348357 Statamic::repository (EntryRepositoryContract::class, EntryRepository::class);
358+
359+ Stache::exclude ('entries ' );
349360 }
350361
351362 private function registerFieldsets ()
@@ -382,6 +393,8 @@ private function registerForms()
382393 });
383394
384395 Statamic::repository (FormRepositoryContract::class, FormRepository::class);
396+
397+ Stache::exclude ('forms ' );
385398 }
386399
387400 private function registerFormSubmissions ()
@@ -403,6 +416,8 @@ private function registerFormSubmissions()
403416 $ app ['statamic.eloquent.form_submissions.model ' ]::query ()
404417 );
405418 });
419+
420+ Stache::exclude ('form-submissions ' );
406421 }
407422
408423 private function registerGlobals ()
@@ -416,6 +431,8 @@ private function registerGlobals()
416431 });
417432
418433 Statamic::repository (GlobalRepositoryContract::class, GlobalRepository::class);
434+
435+ Stache::exclude ('globals ' );
419436 }
420437
421438 private function registerGlobalVariables ()
@@ -431,6 +448,8 @@ private function registerGlobalVariables()
431448 $ this ->app ->bind ('statamic.eloquent.global_set_variables.model ' , function () use ($ usingOldConfigKeys ) {
432449 return config ($ usingOldConfigKeys ? 'statamic.eloquent-driver.global_sets.variables_model ' : 'statamic.eloquent-driver.global_set_variables.model ' );
433450 });
451+
452+ Stache::exclude ('global-variables ' );
434453 }
435454
436455 private function registerRevisions ()
@@ -457,6 +476,8 @@ private function registerStructures()
457476 });
458477
459478 Statamic::repository (NavigationRepositoryContract::class, NavigationRepository::class);
479+
480+ Stache::exclude ('navigation ' );
460481 }
461482
462483 private function registerStructureTrees ()
@@ -480,6 +501,8 @@ private function registerStructureTrees()
480501 });
481502
482503 Statamic::repository (NavTreeRepositoryContract::class, NavTreeRepository::class);
504+
505+ Stache::exclude ('nav-trees ' );
483506 }
484507
485508 public function registerTaxonomies ()
@@ -493,6 +516,8 @@ public function registerTaxonomies()
493516 });
494517
495518 Statamic::repository (TaxonomyRepositoryContract::class, TaxonomyRepository::class);
519+
520+ Stache::exclude ('taxonomies ' );
496521 }
497522
498523 public function registerTerms ()
@@ -512,6 +537,8 @@ public function registerTerms()
512537 });
513538
514539 Statamic::repository (TermRepositoryContract::class, TermRepository::class);
540+
541+ Stache::exclude ('terms ' );
515542 }
516543
517544 public function registerTokens ()
0 commit comments