Describe the bug
Hi I am interested in your project, but when I tried to start it, I encountered several fatal error bound with composer autoload.
I noticed there are some case typo in the code, PHP is case-insensitive but composer is not. So, I did understand if you designed your software in the way to bypass this limitation(I have no experience on this way) or it is a real issue.
Anyway make case sensitive code also in PHP could be a good practice.
Anymore, often you use workflow
but sometimes you refer to Workflow
, so maybe it should be used only one style for the whole project.
In particular I would to show you two errors:
- In
/dashboard
:
Get Error Class 'App\Models\workflow\Orders' not found
- In
/users
:
Get InvalidArgumentException View [Users] not found.
So I would like to know what is your idea about this.
To Reproduce
In container based on php:7.4-fpm
Steps to reproduce the behavior:
composer i
php artisan serve --host=127.0.0.1 --port=8000
- Perform login or navigate to
/dashboard
Additional context
You can find some of this kind of code in:
app/Http/Controllers/HomeController.php
line 7
substituting workflow
with Workflow
error on dashboard disappears
app/Models/User.php
line 16
routes/web.php
in several endpoints you refer to App\Http\Controllers\workflow
instead of App\Http\Controllers\Workflow
bug