/** * Create a new model instance. * * @param array $attributes */ public function __construct(array $attributes = []) { parent::__construct($attributes); if ($connection = config('roles.connection')) { $this->connection = $connection; } }