I would like to create helper functions to avoid repeating code between views in Laravel 5:
view.blade.php
Foo Formated text: {{ fo
Another Way that I used was: 1) created a file in app\FolderName\fileName.php and had this code inside it i.e
2) After that in our blade
$FmyFunctions = new \App\FolderName\classsName; echo $is_ok = ($FmyFunctions->libData());
that's it. and it works