0
votes

I add a new controller in new folder. But I got an error:

ReflectionException in Container.php line 776: Class App\Http\Controllers\QRCode\ProductController does not exist

Here's my new controller:

namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
class ProductController extends Controller {
 ......
}

And my folder:

Folder

But if I put ProductController in folder-Controllers, it's work.

I don't know why.

Please help out!

Thanks in advance.

1

1 Answers

1
votes

use

namespace App\Http\Controllers\QRCode;