Reputation: 7520
I just want to ask a question. I just want to ask if there's a way to include ServiceProviders in Laravel manually? I looked in github page and I saw some laravel serviceprovider. How can I include those in my laravel file? I am new to laravel and I am studying this in our home without an Internet connection. I downloaded the HTMLServiceProvideer manually and I also tried the command:
composer require illuminate/html
Can the composer run without having an Internet Connection? If no how can I install a serviceprovider by using the master-files? Where should I place the files and what file should I need to update?
Upvotes: 1
Views: 688
Reputation: 17553
I believe this is possible but you need to manually do the work of the Composer. So for instance lets assume want to manually install illuminate/html package.
You can follow these steps:
"require":{
"laravel/framework": "5.0.*",
"illuminate/html": "5.*"
}
example in mylaravelapp/vendor
return array(
.....
'Illuminate\\Html\\' => array($vendorDir . '/illuminate/html'),
);
return array(
....
'Illuminate\\Html\\' => array($vendorDir . '/illuminate/html'),
);
Run composer dump-autoload
to check for errors
Add Package service provider in config/app.php 'providers' => []
Run composer dump-autoload
once more
Upvotes: 1
Reputation: 10517
Service Providers are added to your config/app.php
But you will need to have that package downloaded...
Upvotes: 1