1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-09 06:05:28 +01:00
openstamanager/test.php
2018-02-03 13:55:09 +01:00

18 lines
364 B
PHP

<?php
require 'core.php';
$user = \App::getUser();
print_r(Models\Module::getHierarchy()->toArray());
exit();
print_r($user->modules()->get()->toArray());
print_r($user->toArray());
$modules = Models\Module::all();
foreach ($modules as $module) {
print_r($module->title.': '.$module->permission.'<br>');
//print_r($module->views.'<br><br>');
}
exit();