LogViewer/code/app/Providers/AppServiceProvider.php
splin94@yandex.ru fc4ad9476e -
2023-11-15 06:45:06 +00:00

44 lines
907 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';
});
*/
}
}