36 lines
680 B
PHP
Executable File
36 lines
680 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Pagination\Paginator;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
if ($this->app->environment([
|
|
'production',
|
|
'prod',
|
|
'develop',
|
|
'dev',
|
|
])) {
|
|
\URL::forceScheme('https');
|
|
$this->app['request']->server->set('HTTPS', 'on');
|
|
}
|
|
Paginator::useBootstrapFour();
|
|
}
|
|
}
|