Reputation: 5759
How to use Customized Function Laravel Framework
Function :
function convertNumberToWord()
{
}
Upvotes: 1
Views: 862
Reputation: 9454
What you could do for starters, is to create a helpers.php
file anywhere inside app
dir, and require it in the file routes.php
located at app/Http
.
This will make your custom functions available everywhere in laravel.
Later on you should consider using a ServiceProvider
for doing this, as that is the proper laravel way to it.
Upvotes: 1