dishplanner/app/Enums/AppModeEnum.php

24 lines
381 B
PHP
Raw Permalink Normal View History

2026-01-05 21:43:00 +01:00
<?php
namespace App\Enums;
enum AppModeEnum: string
{
case APP = 'app';
case SAAS = 'saas';
public static function current(): self
{
return self::from(config('app.mode', 'app'));
}
public function isApp(): bool
{
return $this === self::APP;
}
public function isSaas(): bool
{
return $this === self::SAAS;
}
}