protected function save(User $user, Model $model) : bool
    {
        if ($model->save() && $model->wasRecentlyCreated) {
            Event::dispatch(new Imported($user, $model));

            // Log the successful import.
            if ($this->isLogging()) {
                logger()->info("Imported user {$user->getCommonName()}");
            }

            return true;
        }

        return false;
    }
protected function save(User $user, Model $model) : bool
    {
        if ($model->save() && $model->wasRecentlyCreated) {
            Event::dispatch(new Imported($user, $model));

            // Log the successful import.
            if ($this->isLogging()) {
                logger()->info("Imported user {$user->getCommonName()}");
            }

            return true;
        }

        return false;
    }
protected function save ( User $ user , Model $ model ) : bool { if ( $ model -> save ( ) && $ model -> wasRecentlyCreated ) { Event :: dispatch ( new Imported ( $ user , $ model ) ) ; // Log the successful import. if ( $ this -> isLogging ( ) ) { logger ( ) -> info ( "Imported user {$user->getCommonName()}" ) ; } return true ; } return false ; }
Saves the specified user with its model.

@param User  $user
@param Model $model

@return bool
Saves the specified user with its model .