mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-05 01:40:54 -05:00
(Update) SSL Info Card 🚀
- thanks @JackPriceBurns
This commit is contained in:
@@ -61,9 +61,9 @@ class HomeController extends Controller
|
||||
$solved = Report::where('solved', '=', 1)->count();
|
||||
|
||||
// SSL Info
|
||||
if (request()->secure()) {
|
||||
$certificate = SslCertificate::createForHostName(config('app.url'));
|
||||
} else {
|
||||
try {
|
||||
$certificate = request()->secure() ? SslCertificate::createForHostName(config('app.url')) : '';
|
||||
} catch (\Exception $e) {
|
||||
$certificate = '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user