for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SET\Providers;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\ServiceProvider;
use SET\Handlers\DBConfigs\DBConfigs;
use SET\Setting;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
// Ensure installation is not in progress
if (!strpos(url()->current(), 'install')) {
DBConfigs::execute();
$this->setupLdap();
}
Setting::saving(function ($setting) {
Cache::forever($setting->key, $setting->value);
});
* Register any application services.
public function register()
if ($this->app->environment() == 'local') {
$this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
private function setupLdap()
if (config('auth.providers.users.driver') == 'adldap') {
$this->app->register('Adldap\Laravel\AdldapServiceProvider');
$this->app->register('Adldap\Laravel\AdldapAuthServiceProvider');