for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yeelight\Providers;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\ServiceProvider;
use Yeelight\Models\Foundation\User;
/**
* Class PolymorphicServiceProvider
*
* @category Yeelight
* @package Yeelight\Providers
* @author Sheldon Lee <[email protected]>
* @license https://opensource.org/licenses/MIT MIT
* @link https://www.yeelight.com
*/
class PolymorphicServiceProvider extends ServiceProvider
{
* Bootstrap the application services.
* @return void
public function boot()
Relation::morphMap([
User::MORPH_NAME => User::class,
//'Comment' => Comment::class,
//'Friend' => Friend::class,
]);
}
* Register the application services.
public function register()
//