mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-02 13:21:02 +00:00
chore(operations): remove legacy-era platform-operations sources
First half of a delete/re-add pair so authorship attributes cleanly to the fresh implementation. The tree is intentionally broken at this commit; the adjacent follow-up restores every path.
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Platform\Operations\Http\Concerns;
|
||||
|
||||
trait GeneratesMenu
|
||||
{
|
||||
public function generateMenu($key, $user)
|
||||
{
|
||||
$new_items = [];
|
||||
|
||||
$menu = \Menu::get($key);
|
||||
$items = $menu ? $menu->items->toArray() : [];
|
||||
|
||||
foreach ($items as $data) {
|
||||
if ($user->checkAccess($data)) {
|
||||
$new_items[] = [
|
||||
'title' => $data->title,
|
||||
'link' => $data->link->path['url'],
|
||||
'icon' => $data->data['icon'],
|
||||
'name' => $data->data['name'],
|
||||
'group' => $data->data['group'],
|
||||
'group_label' => $data->data['group_label'] ?? '',
|
||||
'priority' => $data->data['priority'] ?? 100,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
return $new_items;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user