Laravel Classroom image

PRADEEP  JOSHI / Professional / 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.

 
 
 
image
PRADEEP  JOSHI

Skills    Laravel

Qualifications :-
Location :-Yamuna Colony,Dehradun,Uttarakhand,India
Description:-
Explore
 

  Students (0)