for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omatech\Mage\Core;
use Exception;
class Mage
{
public static function domain(string $domain)
switch ($domain) {
case 'Permissions':
$facade = app('mage.permissions');
break;
case 'Roles':
$facade = app('mage.roles');
case 'Users':
$facade = app('mage.users');
case 'Translations':
$facade = app('mage.translations');
default:
throw new Exception();
}
return $facade;