<?php

namespace App\Providers;

use App\Domain\Feeds\Models\Feed;
use App\Domain\Texts\Models\Text;
use App\Domain\Images\Models\Image;
use App\Domain\Musics\Models\Music;
use App\Domain\Videos\Models\Video;
use Illuminate\Support\ServiceProvider;
use App\Domain\Payments\Models\BankRequisites;
use Illuminate\Database\Eloquent\Relations\Relation;

class EloquentServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        Relation::morphMap([
            'texts' => Text::class,
            'images' => Image::class,
            'videos' => Video::class,
            'musics' => Music::class,
            'feeds' => Feed::class,
            'payoutsBank' => BankRequisites::class,
        ]);
    }

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