added responsable class to index

This commit is contained in:
Denis Duliçi
2020-11-06 00:43:46 +03:00
parent 96963ef0e1
commit e5a7f5b15e
31 changed files with 139 additions and 32 deletions

View File

@ -29,6 +29,6 @@ class Home extends Controller
$free = $this->getFreeModules($data);
$installed = Module::all()->pluck('enabled', 'alias')->toArray();
return view('modules.home.index', compact('pre_sale', 'paid', 'new', 'free', 'installed'));
return $this->response('modules.home.index', compact('pre_sale', 'paid', 'new', 'free', 'installed'));
}
}

View File

@ -21,6 +21,6 @@ class My extends Controller
$modules = $this->getInstalledModules();
$installed = Module::where('company_id', '=', session('company_id'))->pluck('enabled', 'alias')->toArray();
return view('modules.my.index', compact('purchased', 'modules', 'installed'));
return $this->response('modules.my.index', compact('purchased', 'modules', 'installed'));
}
}