Add icons for each DN based on objectClass

This commit is contained in:
Deon George
2020-09-23 22:14:38 +10:00
parent 2a099e2dc4
commit 851010d6d5
179 changed files with 598 additions and 122 deletions

View File

@@ -17,17 +17,14 @@ class HomeController extends Controller
{
public function home()
{
$base = (new Entry)->baseDN();
if (! $base)
$base = collect();
$base = (new Entry)->baseDN() ?: collect();
return view('home')
->with('server',config('ldap.connections.default.name'))
->with('bases',$base->transform(function($item) {
return [
'title'=>$item,
'item'=>Crypt::encryptString($item),
'title'=>$item->getRdn(),
'item'=>Crypt::encryptString($item->getDn()),
'lazy'=>TRUE,
'icon'=>'fa-fw fas fa-sitemap',
'tooltip'=>$item,