I have a custom class that I have to use inside my view. But how I do this?
In Laravel 4.2, I simply run composer.phar dump-autoload and add in start/local.php as follow:
ClassLoader::addDirectories(array(
app_path().'/commands',
app_path().'/controllers',
app_path().'/models',
app_path().'/database/seeds',
app_path().'/helpers/MyClass',
));
Finally, inside my view, I just use my class: MyClass::myMethod(). Again, how I do this with Laravel 5?
Thanks