From aeb3ca0e40deeace8de5e464e99387662fd8d263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 19 Oct 2019 21:17:06 +0200 Subject: [PATCH] Move tenant routes to a stub file --- assets/tenant_routes.php.stub | 16 ++++++++++++++++ src/Commands/Install.php | 23 ++--------------------- 2 files changed, 18 insertions(+), 21 deletions(-) create mode 100644 assets/tenant_routes.php.stub diff --git a/assets/tenant_routes.php.stub b/assets/tenant_routes.php.stub new file mode 100644 index 00000000..a51c3f1c --- /dev/null +++ b/assets/tenant_routes.php.stub @@ -0,0 +1,16 @@ +info('✔️ Set middleware priority'); - if (! file_exists(base_path('routes/tenant.php')) { - file_put_contents( - base_path('routes/tenant.php'), - "info('✔️ Created routes/tenant.php'); } else { $this->info('Found routes/tenant.php.');