restore composer.json, add mysqli extension
This commit is contained in:
32
app/Providers/AppServiceProvider.php
Executable file
32
app/Providers/AppServiceProvider.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
use Illuminate\Support\Facades\App;
|
||||
use URL;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
// change timezone
|
||||
date_default_timezone_set('Asia/Tashkent');
|
||||
// set lang to uz
|
||||
if (App::environment(['staging', 'production'])) {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user