Laravel Classroom image

Prashant  Nigam / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4|Last
Lessons:-Autoloading Classes

18.2 Directory Mapping
If you have a number of Classes which follow the Class name to lower-case file name pattern,
you may want to specify the directory, rather than each file individually. You can do this by
using the directories() method of the Autoloader, however this time you need only supply an
array of values as locations and file names. For example..
1 <?php
2
3 Autoloader::directories(array(
4 path('app').'smurfs'
5 ));
Now all of our classes inside the application/smurfs directory will be auto loaded, so long as
their file name matches the lower-case of their Class name.

 
 
 

Prashant  Nigam

Skills    Laravel

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)