public static function findOrDefault($param, array $attributes) {
        $model = self::findOrNew($param);
        if ($model->isNewRecord) {
            $model->set($attributes);
        }
        return $model;
    }
public static function findOrDefault($param, array $attributes) {
        $model = self::findOrNew($param);
        if ($model->isNewRecord) {
            $model->set($attributes);
        }
        return $model;
    }
public static function findOrDefault ( $ param , array $ attributes ) { $ model = self :: findOrNew ( $ param ) ; if ( $ model -> isNewRecord ) { $ model -> set ( $ attributes ) ; } return $ model ; }
Set not found default data
@param $param
@param array $attributes
@return bool|Model
@throws \Exception
Set not found default data