namespace App\Providers; use Illuminate\Support\ServiceProvider; class CustomHelperServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // Path to your helper file if (file_exists($helper = base_path('themes/custom/helpers/YourlsHelpers.php'))) { require $helper; } } /** * Register any application services. * * @return void */ public function register() { // No need to register anything for helpers } }