diff --git a/app/Http/Controllers/CompanyController.php b/app/Http/Controllers/CompanyController.php index 19c6865741..fb06b051fc 100644 --- a/app/Http/Controllers/CompanyController.php +++ b/app/Http/Controllers/CompanyController.php @@ -466,9 +466,13 @@ class CompanyController extends BaseController */ public function destroy(DestroyCompanyRequest $request, Company $company) { + info(print_r($request->all())); + info("destroying {$company->present()->name()} - {$company->hashed_id}"); $company_count = $company->account->companies->count(); $account = $company->account; + + info("company count = {$company_count}"); if ($company_count == 1) { diff --git a/app/Http/Middleware/StartupCheck.php b/app/Http/Middleware/StartupCheck.php index d8abfe9ca4..84a0e1f37c 100644 --- a/app/Http/Middleware/StartupCheck.php +++ b/app/Http/Middleware/StartupCheck.php @@ -45,8 +45,6 @@ class StartupCheck Session::flash('message', 'Cache cleared'); } - - /* Make sure our cache is built */ $cached_tables = config('ninja.cached_tables');