Laravel Classroom image

Anil  Bist / 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
Anil  Bist

Skills    Laravel

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)