%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/shaban/duassis/api/app/Providers/
Upload File :
Create Path :
Current File : //var/www/html/shaban/duassis/api/app/Providers/AppServiceProvider.php

<?php

namespace App\Providers;

use App\Models\Address;
use App\Models\App\AppCategory;
use App\Models\App\AppField;
use App\Models\Country;
use App\Models\Device;
use App\Models\Profile;
use App\Models\Role;
use App\Models\Tag;
use App\Models\User;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

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

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Schema::defaultStringLength(191);

        Relation::morphMap([
            'Address'             => Address::class,
            'App\Models\Category' => AppCategory::class,
            'Country'             => Country::class,
            'Device'              => Device::class,
            'App\Models\Field'    => AppField::class,
            'Profile'             => Profile::class,
            'Role'                => Role::class,
            'Tag'                 => Tag::class,
            'User'                => User::class,
        ]);
    }
}

Zerion Mini Shell 1.0