Последняя версия с сервера прошлого разработчика
This commit is contained in:
42
app/Providers/EloquentServiceProvider.php
Executable file
42
app/Providers/EloquentServiceProvider.php
Executable file
@@ -0,0 +1,42 @@
|
||||
<?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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user