Class ‘App\Http\Controllers\DB’ not found and I also cannot use a new Model
The problem here are PHP namespaces. You need to learn how to use them. As your controller are in App\Http\Controllers namespace, if you refer any other class, you need to add leading backslash (or proper namespace) or add use statement at the beginning of file (before class definition). So in your case you could use: … Read more