datatable.directory codebase https://datatable.directory/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
datatable.directory/app/Providers/AppServiceProvider.php

34 lines
629 B

7 years ago
<?php
namespace App\Providers;
use App\View\WidgetFactory;
7 years ago
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
if($this->app->environment('production')) {
\URL::forceScheme('https');
}
7 years ago
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->app->singleton(WidgetFactory::class, function () {
return new WidgetFactory();
});
7 years ago
}
}