I am using "laravel/framework": "4.2. *" version, and I want to use the module system for my project. I have followed the instructions provided in this document.
I can create modules by using the command: php artisan modules:create module_name. I have created an admin module in my app directory, and the module's directory structure has been created.
I am using DB::select('some SQL statement') in one of the actions of the controller from the admin module, but it is giving me the following error:
Class 'App\Modules\Admin\Controllers\DB' not found.
Why is it not able to find this class?
use Illuminate\Support\Facades\DB;