From 8afc24272a1bc880825d9d2f665797a2bc0935b0 Mon Sep 17 00:00:00 2001 From: Mychi Date: Wed, 20 Oct 2021 08:08:28 +0000 Subject: [PATCH] :fire: removed unused functions --- Config/functions.php | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Config/functions.php b/Config/functions.php index 40384e4..64af696 100644 --- a/Config/functions.php +++ b/Config/functions.php @@ -55,16 +55,6 @@ function auth($guard = null) } } -if (!function_exists('d')) { - /** - * Return Leaf's date object - */ - function d() - { - return app()->date; - } -} - if (!function_exists('dbRow')) { /** * Return a db row by it's id @@ -105,23 +95,13 @@ function email(array $email) } } -if (!function_exists('fs')) { - /** - * Return Leaf's FS object - */ - function fs() - { - return app()->fs; - } -} - if (!function_exists('flash')) { /** * Return Leaf's flash object */ function flash() { - return \Leaf\Flash::class; + return new \Leaf\Flash; } }