Welcome Guest, Not a member yet? Register   Sign In
How to call function from custom helper ?
#5

Hi

Just remove namespace from helper - //namespace App\Helpers;

And best practice use function wrapper in helpers files
Code:
if(!function_exists('formatDateTime')) {
  function formatDateTime() {
  }
}
Reply


Messages In This Thread
RE: How to call function from custom helper ? - by vitnibel - 12-04-2023, 06:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB