I deployed my local app via github to forge/do. (from local to production)
the deployment went well. But when i try to reach a page it gives the following error:
[2020-03-26 17:13:54] production.ERROR: Call to undefined function autoVer() (View: /home/forge/default/resources/views/partials/standaard/lxx/_head.blade.php) (View: /home/forge/default/resources/views/partials/standaard/xx/_head.blade.php) (View: /home/forge/default/resources/views/partials/standaard/xx/_head.blade.php) {"exception":"[object] (ErrorException(code: 0): Call to undefined function autoVer() (View:
It seems that laravel is not able to find a the function. In local development (mac/valet) i don't get the error.
the function is located in a helper file. Located in the folder helpers.
i got a file HelperServiceProvider where i register the total helper folder.
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class HelperServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
foreach (glob(app_path().'/Helpers/*.php') as $filename){
require_once($filename);
}
}
}
It looks like it doesn't work in production?
What can i do to solve the issue?
thanks for the reactions.