Problems with helpers in laravel 5.6

0

I created a PHP page and did some functions in it to help with my project.

I added this in this page through this line:

"files": ["App/FunAuxiliar.php"]

But when I uploaded the system for production, I was not able to call the functions I created for this page.

Does anyone have a solution?

    
asked by anonymous 06.09.2018 / 15:22

1 answer

2

Probably the problem is that you are using App\FunAuxiliar.php , instead of app\FunAuxiliar.php .

As far as I know, in Laravel, the default application folder is app and not App .

In operating systems like Windows, it makes no difference. But in Linux it does, since Linux is case-sensitive (case-sensitive).

This problem is common when you run your application on Windows and upload it to a Linux server.

So the recommendation is always to reference the fact folders as their value is, rather than changing a case (small or small) of a letter of the directory name, like you did.

    
06.09.2018 / 15:36