I have some issue with my controller. After I move the controller to sub folder it always tell me
Class 'Horsefly\Request' not found
I don't know what it is the problem. I did the same in admin sub folder and it worked fine.
Controller:
<?php
namespace Horsefly\Http\Controllers\includes;
use Illuminate\Http\Request;
use Horsefly\Http\Requests;
use Horsefly\Ebooks;
use Horsefly\Settings;
use Horsefly\Http\Controllers\Controller;
class EbooksController extends Controller {
}
Routes
get('/navpage', 'includes\EbooksController@navpage');
get('/content', 'includes\EbooksController@content');
get('/openModel', 'includes\EbooksController@openModel');
thanks for the help.
You declared use Horsefly\\Http\\Requests;
Just change it to
use Horsefly\\Requests;
or use Request;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.