Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 8afc242

Browse files
committed
🔥 removed unused functions
1 parent 56742b0 commit 8afc242

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

Config/functions.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ function auth($guard = null)
5555
}
5656
}
5757

58-
if (!function_exists('d')) {
59-
/**
60-
* Return Leaf's date object
61-
*/
62-
function d()
63-
{
64-
return app()->date;
65-
}
66-
}
67-
6858
if (!function_exists('dbRow')) {
6959
/**
7060
* Return a db row by it's id
@@ -105,23 +95,13 @@ function email(array $email)
10595
}
10696
}
10797

108-
if (!function_exists('fs')) {
109-
/**
110-
* Return Leaf's FS object
111-
*/
112-
function fs()
113-
{
114-
return app()->fs;
115-
}
116-
}
117-
11898
if (!function_exists('flash')) {
11999
/**
120100
* Return Leaf's flash object
121101
*/
122102
function flash()
123103
{
124-
return \Leaf\Flash::class;
104+
return new \Leaf\Flash;
125105
}
126106
}
127107

0 commit comments

Comments
 (0)