(Update) SSL Info Card 🚀

- thanks @JackPriceBurns
This commit is contained in:
HDVinnie
2018-12-19 11:52:04 -05:00
parent 37c5d35b54
commit cf13fce6f7
@@ -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 = '';
}