mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Fix #562
This commit is contained in:
parent
faedc849c9
commit
1fbe9cf3e2
1 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,9 @@ use Stancl\Tenancy\Middleware;
|
||||||
|
|
||||||
class TenancyServiceProvider extends ServiceProvider
|
class TenancyServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
// By default, no namespace is used to support the callable array syntax.
|
||||||
|
public static string $controllerNamespace = '';
|
||||||
|
|
||||||
public function events()
|
public function events()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|
@ -118,7 +121,7 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
protected function mapRoutes()
|
protected function mapRoutes()
|
||||||
{
|
{
|
||||||
if (file_exists(base_path('routes/tenant.php'))) {
|
if (file_exists(base_path('routes/tenant.php'))) {
|
||||||
Route::namespace('App\Http\Controllers')
|
Route::namespace(static::$controllerNamespace)
|
||||||
->group(base_path('routes/tenant.php'));
|
->group(base_path('routes/tenant.php'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue