- authentication fix

- demo helper
This commit is contained in:
Peter Papp
2021-03-17 07:34:22 +01:00
parent 2c69553582
commit ce477fdaf1
13 changed files with 47 additions and 11653 deletions

View File

@@ -78,7 +78,7 @@ class PlanController extends Controller
public function store(Request $request)
{
// TODO: inline request
if (env('APP_DEMO')) {
if (is_demo()) {
if (Cache::has('plan-starter-pack')) {
$plan = Cache::get('plan-starter-pack');
@@ -110,7 +110,7 @@ class PlanController extends Controller
*/
public function update(Request $request, $id)
{
if (env('APP_DEMO')) {
if (is_demo()) {
return $this->demo->response_with_no_content();
}
@@ -131,7 +131,7 @@ class PlanController extends Controller
*/
public function delete($id)
{
if (env('APP_DEMO')) {
if (is_demo()) {
return $this->demo->response_with_no_content();
}