My folder structure looks like below
app
Console
Events
Exceptions
Http
Classroom
Controllers
Middleware
Requests
Kernel.php
Default
Controllers
Middleware
Requests
Kernel.php
Homework
Controllers
Middleware
Requests
Kernel.php
routes-classroom.php
routes-default.php
routes-homework.php
routes.php
Jobs
Listeners
Policies
Providers
User.php
bootstrap
config
database
public
public_classroom
bootstrap
cache
app.php
autoload.php
public_homework
bootstrap
cache
app.php
autoload.php
resources
storage
tests
vendor
My vhsot is like:
cr.classroom.loc => public_classroom
hw.classroom.loc => public_homewrok
I want when cr.classroom.loc is accessed then Http/Classroom/controller will be accessed and same will happen for hw.classroom.loc as well. I have fixed the namespaces accordingly ran composer dump-autoload, php artisan clear-compiled but nothing helps. The follwing error is displayed:
Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /var/www/classroom/vendor/laravel/framework/src/Illuminate/Container/Container.php:741