phpldapadmin/app/Http/Controllers/HomeController.php

19 lines
366 B
PHP
Raw Normal View History

2020-08-20 22:33:13 +10:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
2020-08-23 12:30:18 +10:00
use App\Classes\LDAP\Server;
2020-08-22 22:26:06 +10:00
2020-08-20 22:33:13 +10:00
class HomeController extends Controller
{
2020-08-22 22:26:06 +10:00
public function home() {
2020-08-23 12:30:18 +10:00
$o = new Server;
2020-08-22 22:26:06 +10:00
return view('home')
->with('server',config('ldap.connections.default.name')) // @todo This connection name should be a config item
->with('bases',$o->getBaseDN());
}
2020-08-20 22:33:13 +10:00
}