Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ledger.corals.io/Corals/core/User/Communication/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ledger.corals.io/Corals/core/User/Communication/CommunicationServiceProvider.php
<?php

namespace Corals\User\Communication;

use Corals\User\Communication\Models\Notification;
use Corals\User\Communication\Models\NotificationTemplate;
use Corals\User\Communication\Providers\NotificationAuthServiceProvider;
use Corals\User\Communication\Providers\NotificationEventServiceProvider;
use Corals\User\Communication\Providers\NotificationObserverServiceProvider;
use Corals\User\Communication\Providers\NotificationRouteServiceProvider;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\ServiceProvider;

class CommunicationServiceProvider extends ServiceProvider
{
    protected $defer = false;

    /**
     * Bootstrap the application events.
     *
     * @return void
     */
    public function boot()
    {
        // Load view
        $this->loadViewsFrom(__DIR__ . '/resources/views', 'Notification');

        // Load translation
        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'Notification');

        $this->registerMorphMaps();

        // Load migrations
        $this->loadMigrationsFrom(__DIR__ . '/database/migrations');

        \JavaScript::put([
            'laravel_echo_domain' => config('notification.laravel_echo_domain')
        ]);
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/config/notification.php', 'notification');

        $this->app->register(NotificationAuthServiceProvider::class);
        $this->app->register(NotificationRouteServiceProvider::class);
        $this->app->register(NotificationObserverServiceProvider::class);
        $this->app->register(NotificationEventServiceProvider::class);
    }

    protected function registerMorphMaps()
    {
        Relation::morphMap([
            'Notification' => Notification::class,
            'NotificationTemplate' => NotificationTemplate::class
        ]);
    }
}

Spamworldpro Mini