Версия 0.7.1. #2
@ -4,6 +4,8 @@ APP_KEY=
|
|||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://localhost
|
APP_URL=http://localhost
|
||||||
|
|
||||||
|
APP_FORCE_HTTPS=false
|
||||||
|
|
||||||
APP_DEMO_MODE=false
|
APP_DEMO_MODE=false
|
||||||
APP_DEMO_EMAIL=
|
APP_DEMO_EMAIL=
|
||||||
APP_DEMO_PASSWORD=
|
APP_DEMO_PASSWORD=
|
||||||
|
@ -22,6 +22,7 @@ use App\Services\Search\Search;
|
|||||||
use Illuminate\Contracts\Foundation\Application;
|
use Illuminate\Contracts\Foundation\Application;
|
||||||
use Illuminate\Pagination\Paginator;
|
use Illuminate\Pagination\Paginator;
|
||||||
use Illuminate\Support\Facades\Blade;
|
use Illuminate\Support\Facades\Blade;
|
||||||
|
use Illuminate\Support\Facades\URL;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Illuminate\Validation\Rules\Password;
|
use Illuminate\Validation\Rules\Password;
|
||||||
|
|
||||||
@ -70,6 +71,10 @@ final class AppServiceProvider extends ServiceProvider
|
|||||||
return Helpers::isDemoMode();
|
return Helpers::isDemoMode();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (config('app.force_https') === true) {
|
||||||
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
|
||||||
Password::defaults(function () {
|
Password::defaults(function () {
|
||||||
$rule = Password::min(8);
|
$rule = Password::min(8);
|
||||||
|
|
||||||
|
@ -70,6 +70,8 @@ return [
|
|||||||
|
|
||||||
'asset_url' => env('ASSET_URL'),
|
'asset_url' => env('ASSET_URL'),
|
||||||
|
|
||||||
|
'force_https' => (bool) env('APP_FORCE_HTTPS', false),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Timezone
|
| Application Timezone
|
||||||
|
Loading…
Reference in New Issue
Block a user