LogViewer/code/app/Providers/AppServiceProvider.php
splin94@yandex.ru 2c0da36a8f -
2023-11-14 09:25:06 +00:00

44 lines
911 B
PHP
Executable File

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Opcodes\LogViewer\Facades\LogViewer;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
if ($this->app->isLocal()) {
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
if(config('app.env') === 'production') {
\URL::forceScheme('https');
}else {
\URL::forceScheme('https');
}
/*
LogViewer::auth(function ($request) {
return $request->user()
&& $request->user()->email == 'splin94@yandex.ru';
});
*/
}
}