Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

If you stick to the laravel what of doing things, ServiceProvider loading can be defered.

If you want a CI like approach, then no there is no such concept of library in laravel, and you want to lazy load librairies on the fly you'll have to do it yourself.

By the way, I don't think it'll be a problem because:

  • Loading 10 files don't add too much overhead over the 200+ files laravel load.
  • Artisan optimize command can optimize the loading for you in production (check the doc to know how to configure it)
  • Install apc and you'll not care anymore about 10 files loaded because they'll stay in memory anyway.

So, no matter you are in production/dev, this isn't really a problem.

By the way, may I recommend you to learn how to work with laravel packages (workbench and composer) instead of doing it the old CodeIgniter way.

Last updated 2 years ago.
0

ok i will try packages.

me i know whats the logic behind packages and how it is load in laravel .

what is alias loading and how it work and where can i found the code for reviewing how it work in laravel.

Thanks!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mukeshp004 mukeshp004 Joined 23 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.