29 lines
534 B
PHP
Executable File
29 lines
534 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Database\Eloquent\Relations\Relation;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Relation::morphMap([
|
|
'Gems' => 'App\Models\Gems',
|
|
'Articles' => 'App\Models\Articles',
|
|
]);
|
|
}
|
|
}
|