mercredi 26 mars 2014

Laravel 4 - Autoload Laravel classes in custom controller namespace


Vote count:

0




a quick (maybe stupid) question.


I'm using a namespace for my controllers, like so:



namespace Members;

use DB;
use Input;
use PerformanceReport;
use Redirect;

class AdminController extends MembersController {


And as expected, I have to provide use statements for the Laravel classes I wish to use.


From what I've understood, the composer autoloader prevents this from being necessary if used correctly.


So my question being, is it possible to configure the autoloader to suit my needs, and if so, how would I go by doing this?



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire