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

Commit

Permalink
🔥 removed unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Oct 20, 2021
1 parent 56742b0 commit 8afc242
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions Config/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 8afc242

Please sign in to comment.