Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Dec 14, 2020
1 parent faedc84 commit 1fbe9cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/TenancyServiceProvider.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

class TenancyServiceProvider extends ServiceProvider
{
// By default, no namespace is used to support the callable array syntax.
public static string $controllerNamespace = '';

public function events()
{
return [
Expand Down Expand Up @@ -118,7 +121,7 @@ protected function bootEvents()
protected function mapRoutes()
{
if (file_exists(base_path('routes/tenant.php'))) {
Route::namespace('App\Http\Controllers')
Route::namespace(static::$controllerNamespace)
->group(base_path('routes/tenant.php'));
}
}
Expand Down

0 comments on commit 1fbe9cf

Please sign in to comment.