Best Practices for Laravel 4 Helpers and Basic Functions?
The ugly, lazy and awful way: At the end of bootstrap/start.php , add an include(‘tools.php’) and place your function in that new file. The clean way: Create a library. That way it’ll be autoloaded ONLY when you actually use it. Create a libraries folder inside your app folder Create your library file, create a class … Read more