From 141b9fdbc293eaf805bbe39594a5407061d17ce5 Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Sun, 26 Jul 2020 21:45:09 +0200 Subject: [PATCH] on -> in --- source/docs/v3/features/universal-routes.blade.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/docs/v3/features/universal-routes.blade.md b/source/docs/v3/features/universal-routes.blade.md index 7c9598f..947a2ac 100644 --- a/source/docs/v3/features/universal-routes.blade.md +++ b/source/docs/v3/features/universal-routes.blade.md @@ -10,7 +10,7 @@ section: content Sometimes, you may want to use the exact same **route action** both in the central application and the tenant application. Note the emphasis on route **action** — you may use the same **path** with different actions in central & tenant routes, whereas this section covers using the same **route and action**. -Generally, try to avoid these use cases as much as possible and prefer duplicating the code. Using the same controller and model for users in central & tenant apps will break down once you need slightly different behavior — e.g. different views returned by controllers, different behavior on models, etc. +Generally, try to avoid these use cases as much as possible and prefer duplicating the code. Using the same controller and model for users in central & tenant apps will break down once you need slightly different behavior — e.g. different views returned by controllers, different behavior in models, etc. First, enable the `UniversalRoutes` feature by uncommenting the following line in your `tenancy.features` config: @@ -36,4 +36,4 @@ Route::get('/foo', function () { And the route will work in both central and tenant applications. Should a tenant be found, tenancy will be initialized. Otherwise, the central context will be used. -If you're using a different middleware, look at the `UniversalRoutes` feature source code and change the public static property accordingly. \ No newline at end of file +If you're using a different middleware, look at the `UniversalRoutes` feature source code and change the public static property accordingly.