Adldap\Laravel\Commands\Import::save PHP Method

save() protected method

Saves the specified user with its model.
protected save ( User $user, Model $model ) : boolean
$user Adldap\Models\User
$model Illuminate\Database\Eloquent\Model
return boolean
    protected function save(User $user, Model $model)
    {
        $imported = false;
        if ($model->save() && $model->wasRecentlyCreated) {
            $imported = true;
            // Log the successful import.
            if ($this->isLogging()) {
                logger()->info("Imported user {$user->getCommonName()}");
            }
        }
        return $imported;
    }